home *** CD-ROM | disk | FTP | other *** search
Text Truncated. Only the first 1MB is shown below. Download the file for the complete contents.
- Return-Path: owner-LISTSERV@DARTCMS1.DARTMOUTH.EDU
- Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
- with SMTP id AA24679; Thu, 1 Dec 94 10:50:21 -0600
- Message-Id: <9412011650.AA24679@lks.lks.csi.com>
- Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
- (IBM VM SMTP V2R2) with BSMTP id 1672; Thu, 01 Dec 94 11:51:16 EDT
- Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
- DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 1666; Thu,
- 1 Dec 1994 11:50:44 -0400
- Date: Thu, 1 Dec 1994 11:50:05 -0400
- From: "L-Soft list server at DARTCMS1 (1.8a)" <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
- Subject: File: "MACSCRPT LOG9411"
- To: F Terry <pfterry@lks.csi.com>
-
- =========================================================================
- Date: Mon, 31 Oct 1994 21:31:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brad Schrick <brad@APE.COM>
- Subject: Re: quit... quit!... QUIT!!!
-
- >What about....
- >
- >"If you have a stay open script that won't quit, you can type shift-
- >command-Q to stop it."
-
- -- very funny, I suppose I deserve it... but this is for a customer, and
- for him all the pieces need to close up and quit when the script gets to
- the end of the input file... he knows his way around a Mac, but little
- things confuse, and error messages (File Not Open) don't give customers
- nice warm feelings...
-
- -- I sent the 'error number -128' solution to the list, but haven't got it
- back myself yet; my former message (about quit quit etc...) did come
- through, about four or more hours later, so I suppose the -128 one will
- come through to me as well...
-
- -- thanks for the help, verily; the jokes and jibes are worth all the real
- help I've traded here... -- Brad
-
- __________________________________________________________________________
- Brad Schrick brad@ape.com *** Palo Alto, California
- http://ape.com/
- http://www.batnet.com/ape/ ... It's not easy until it's done.
- __________________________________________________________________________
- =========================================================================
- Date: Mon, 31 Oct 1994 17:27:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Edmund Lai <lai@APPLE.COM>
- Subject: Re: xcmd osax and XCMD Shell etc.
-
- >Rinaldi's Resource To Text function bombs my otherwise very stable machine.
- >
- >it only fails when:
- >
- >copy(choose file) to theFile
- >resource to text type "ICON" identifier "Bill" in theFile hexadecimal true
- >
- >BLAMMO! Right to MacsBug
- >
- >Leave off the hex and it works fine. That's of course, useless to me, I
- >need the hex!
- >
- >It says it's using 2.0 of ResToText, but I don't know if that or the shell
- >is the cause.
- >
- >If anyone's made this one work, let me know how! I'm on a 7.5 System with
- >NO strange inits. Well, everything else doesn't bomb including Greg
- >Quinn's _great_ additions.
- >
-
- I tried it just now and indeed it crashes into MacsBug.
-
- I tried it again and this time I look at the XCMD parameter block passed
- to the XCMD, it looks OK, I let it go into the XCMD and again it crashes.
-
- This suggest the problem is in the XCMD. I try it one more time to step
- into the XCMD to see if anything is wrong, but this times it runs.
- Since then it runs fine. This suggests an uninitialized variable
- somewhere. Is it in the shell or is it in the XCMD? I don't know,
- although I am inclined to suspect the XCMD from what I have seen
- so far.
-
- This is both the strong point and the weak point of the XCMD OSAX. It
- takes off the shelf XCMD and use it as is. This is a wonderful way
- of recycling XCMDs. Earlier there are question about a record sound
- OSAX. Rinaldi has two sound recording osax, one with user interaction
- and one without. They can be easily converted over to an osax using
- the XCMD OSAX. There are also question of OSAX writing to serial port
- and mention of a SerialHandler XFCN, the XCMD OSAX may also be able to
- do the job too.
-
- The flip side is that if things are not going right, it is difficult to
- find out where it is wrong and how to fix it. Both the XCMD writer and
- the shell writer has only access the source to half the story and
- would not know what is going on in the other side.
-
- >I once saw a program that would run XCMD's and XFCN's for AppleScript. It
- >was fast and small, and now it's gone. This is different than the XCMD osax
- >available. For one, it eliminates having to define xprm and aete resources.
-
- The XCMD shell was written before the XCMD OSAX, the core code of the
- XCMD shell goes into the OSAX. The shell is very out of date and written
- before AppleScript. I don't know how well it would run now.
-
- The XCMD Shell still needs aete, the difference is that it has
- sort of an installer. You install by dropping a file with an XCMD into
- it, and when you do that you have to fill in information which the shell
- will use to build the aete. No xprm is used because it relies on part
- of comment of the aete to do the job of xprm. However, it proves to be
- inadequate for a lot of XCMDs. The XCMD OSAX which comes after the
- XCMD shell does a much better job in this respect.
-
- However, there are some nice thing about the Shell that is not available
- in the XCMD OSAX. First there is the crude installer mentioned earlier.
- The XCMD Shell supports the GetGlobal and SetGlobal call, the lack of
- which in the OSAX is a major reason why many complex XCMD cannot use
- the XCMD OSAX. The XCMD Shell let you try out the XCMD in a manner
- similar to Commando in MPW (i.e. you are presented with a dialog to
- fill out the parameters in the command), and it would even let you
- record the command.
-
- It would be interesting if we can use the last feature in AppleScript.
- AppleScript is a bit too command line oriented for my own taste. It
- would be interesting to have a shell where you can fill out parameter
- to an OSAX like a commando to try it out and optionally to generate
- AppleScript command from it when you are writing a script.
-
- >On to other matters, could anybody give me a step-by-step lazy man's guide
- >to extracting one of the commands in this collection to it's own addition?
- >300k plus of scripting addition for the use of a couple of commands seems
- >like overkill, especially if I'm going to give the project to a client.
- >
-
- To delete the unused XCMDs, just use ResEdit or other resource editor
- and take out all the ones that you do not need. Then you need some
- aete editor to delete the terminology of all the XCMDs that you do
- not use. From the aete you can also determine the event ID of the
- XCMDs you need, the resource name of a XPRM is the same as the
- event ID, so you can also remove all the XPRMs that you do not need.
-
- /* Disclaimer: All statments and opinions expressed are my own */
- /* Edmund K. Lai */
- /* Apple Computer, MS303-3A */
- /* 20525 Mariani Ave, */
- /* Cupertino, CA 95014 */
- /* (408)974-6272 */
- zW@h9cOi
- =========================================================================
- Date: Tue, 1 Nov 1994 08:44:57 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alberto.V" <albertov@MINSK.DOCS.UU.SE>
- Subject: FaceSpan list
-
- Hi!
-
- Some time ago there was a list posted on comp.sys.mac.programmer about
- the features that the next version of FaceSpan would include. If there
- is some interest I can post that list here. It was originally posted
- on AOL. So if you all already have seen it and dont wan't to see it
- again send me a note telling what to do.
-
- Alberto.V
- =========================================================================
- Date: Tue, 1 Nov 1994 00:14:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: quit... quit!... QUIT!!!
-
- Brad is having trouble quitting a stay open script application from an
- error handler.
-
- Make sure you have a quit handler defined, and that it looks like this:
-
- on quit
- continue quit
- end quit
-
- [It can do more than that, such as overruling the desire to quit.]
-
- Given that, this silly script application (saved as stay-open) worked for me:
-
- property n : 0
-
- on run
- set n to 0
- end run
-
- on idle
- try
- if n > 5 then error "Testing"
- on error
- quit
- end try
- set n to n + 1
- beep
- return 5
- end idle
-
- on quit
- continue quit
- end quit
-
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 1 Nov 1994 04:20:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joe Alvarez <jalvarez@BEACH.SILCOM.COM>
- Subject: Re: learning to use applescript
-
- Dean Christakos wrote:
- >What's a good place to learn how to use Applescript proficiently? Are the
- >any good sources for this, perhaps on the Web?
- >
-
- Open up Script Editor and print up a few of your favorite applications'
- Dictionaries. If nothing else, do the (scriptable 7.1.3 & extension)
- Finder. Take real simple scripts and substitute commands. There is a lot of
- trial and error. You'll want a guide like the Goodman book, but it is NOT
- written for people who are completely new to scripting concepts,IMO. Not
- enough examples for my taste.
-
- I think the key is to use it more as a reference and just explore on your
- own. This is what has worked for me. Good luck!
-
- BTW, if you own Quickeys, make sure to read about how to run scripts from
- keyboard shortcuts. This is really a super combination.
-
- Joe
-
- Joe Alvarez --> jalvarez@beach.silcom.com
- =========================================================================
- Date: Tue, 1 Nov 1994 07:55:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: aete template
-
- Does anyone have a template to edit 'aete's? I've heard rumors of such a
- thing, but a check of the usual archive sites yielded nothing. Pointers to
- it or a copy of it in the mail would be much appreciated.
-
- ~ Kiran <groo@netcom.com>
-
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Tue, 1 Nov 1994 08:41:38 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dave <DJR@ICF.HRB.COM>
- Subject: Finding every occurence of a delimiter
-
- Hi all,
- A portion of a script I am writing contains a nested repeat loop which I
- would like to get ride to enhance speed performance. The loop contains a
- check for every occurence of a tab to see if the file contains data or not.
- Some sample data would like:
- date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
-
- or
-
- date <tab> 2.5 <tab> 0 <tab> 8
-
- or
-
- date <tab> <tab> <tab> <tab>
-
- I have a script which when encountering data set 3 would correctly consider the
- file NULL, which is the purpose of the loop. The portion of code looks like:
-
- repeat with paragraphNum from 2 to (the number of paragraphs in theData)
- set off to offset of tab in (paragraph paragraphNum of the Data)
- set charCount to (number of characters of paragraph paragraphNum of theData)
- if (character (off+1) of paragraph paranumber of theData = tab) then
- set off to (off+1)
- repeat until ((character off of paragraph paragraphNum of theData <> tab)
- or (off = charCount))
- set off to off+1
- end repeat
- endif
- [deleted code]
- end repeat
-
- The code works perfectly but it is much too slow for my liking. The entire
- script works on every file in a folder (about 15 files) and takes about a
- minute. Any suggestions on speed improvement??
-
- Mainly I am looking for a faster routine to find all the tabs in a file and
- upon finding a non-tab character, exit the routine before the end of file.
-
- Thanks,
- Dave
- =========================================================================
- Date: Tue, 1 Nov 1994 12:59:33 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Boroditsky <sage!admin@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: QuarkXpress 3.31 NameBoxes Examples problem (UserLand)
-
- >I have a problem running NameBoxes example script shipped with Quark. It
- >generates the error message: "QuarkXpress" reported the following error:
- >"Can't interpret the object specification."
-
- I have run the same demo script on a Quarda 700 running Quark 3.31 and on a
- 6100/60 running Quark for PPC 3.31. The script ran fine on both. I tried a
- number of different types of documents (no boxes, lots of boxes, lots of
- pages...)
-
- There is only one 'get' in the script, when the current name of the next box
- is gotten.
- Curiously, this line of code has a break point set with it. (The hand
- replaces the triangle to the left of the code). If this script is run in
- debug mode, execution will pause at this line.
- (To remove or set a breakpoint, hold down the command key and single click on
- the hand/triangle).
-
- David
-
- David Boroditsky - sage!dave@noc.tor.hookup.net
- Scripting what no one has scripted before...
- =========================================================================
- Date: Tue, 1 Nov 1994 10:43:05 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Re: Applescript Commands
-
- >I am a beginners in A.S. I am trying to write some scripts to "Anarchie". When
- >i looked at the example that i found in it, i found the command "writetext".
- >i tried to find the meaning of the command in the dictionary of the
- >application and in the A.S Developer's Toolkit but found nothing. Why can't
- >i find it ?
-
- Anarchie comes with a read me file in the sample scripts folder. The read me
- files states that since there are problems with Apple's "Read/Write Commands"
- OSAX with the PowerPC under AS 1.1. Therefore, the author of Anarchie wrote his
- own OSAX called "Text Files" OSAX which handles the problems. It should be
- inside the sample scripts folder of Anarchie. You'll need to place the "Text
- Files" OSAX within the Scripting Additions folder which can be found within your
- extension folder. You can examine the commands this OSAX supports with the
- script editor via the Open Dictionary command.
-
- Hope that helps.
-
- --
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- --
- =========================================================================
- Date: Tue, 1 Nov 1994 11:00:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Robert Viens <viens@PUBNIX.NET>
- Subject: Re: Finding every occurence of a delimiter
-
- >Hi all,
- > A portion of a script I am writing contains a nested repeat loop which I
- >would like to get ride to enhance speed performance. The loop contains a
- >check for every occurence of a tab to see if the file contains data or not.
- >Some sample data would like:
- >date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
- >
- >or
- >
- >date <tab> 2.5 <tab> 0 <tab> 8
- >
- >or
- >
- >date <tab> <tab> <tab> <tab>
- >
- >I have a script which when encountering data set 3 would correctly consider the
- >file NULL, which is the purpose of the loop. The portion of code looks like:
- >
- >repeat with paragraphNum from 2 to (the number of paragraphs in theData)
- > set off to offset of tab in (paragraph paragraphNum of the Data)
- > set charCount to (number of characters of paragraph paragraphNum of theData)
- > if (character (off+1) of paragraph paranumber of theData = tab) then
- > set off to (off+1)
- > repeat until ((character off of paragraph paragraphNum of theData <> tab)
- > or (off = charCount))
- > set off to off+1
- > end repeat
- > endif
- > [deleted code]
- >end repeat
- >
- >The code works perfectly but it is much too slow for my liking. The entire
- >script works on every file in a folder (about 15 files) and takes about a
- >minute. Any suggestions on speed improvement??
- >
- >Mainly I am looking for a faster routine to find all the tabs in a file and
- >upon finding a non-tab character, exit the routine before the end of file.
- >
- >Thanks,
- > Dave
-
-
- Hi Dave,
-
- I`ve you try to use text item delimiters?
-
- Here is a example:
-
-
- set savedDelimiters to text item delimiters of AppleScript
- set text item delimiters of AppleScript to tab
- repeat with paragraphNum from 2 to (the number of paragraphs in theData)
- set para_var to paragraph paragraphNum of the Data
- repeat with n from 1 to count of text item in para_var
- set textVar to text item n of para_var
- if textVar is not "" then -- You got some text
- end repeat
- end repeat
- set text item delimiters of AppleScript to savedDelimiters
-
- / Robert Viens (viens@pubnix.net) / / 3981, St-Laurent bureau 810 /
- / Soft. Eng. / / Montreal (Quebec) /
- / Les maitres typographes Zibra / / Fax.: 514-288-1599 /
- =========================================================================
- Date: Tue, 1 Nov 1994 11:02:48 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Finding every occurence of a delimiter
-
- >Mainly I am looking for a faster routine to find all the tabs in a file and
- >upon finding a non-tab character, exit the routine before the end of file.
- >
-
- This routine will scan a string for non-tab chars, set a flag and exit if
- any are found. It skips the first paragraph in the string, and then all
- chars preceeding the first tab in each paragraph.
-
- "Brute force always wins" - me
-
-
-
- set theData to "header junk" & return & "date" & tab & tab & return &
- "anything, really" & tab & tab -- test data
-
- set notAllTabs to false
- set skipping to true
-
- repeat with ch in (characters from paragraph 2 to character -1 of theData)
- if skipping then
- set skipping to contents of ch =82 tab -- wait for first tab
- else if contents of ch =3D return then
- set skipping to true -- start a new paragraph
- else if contents of ch =82 tab then
- set notAllTabs to true
- exit repeat
- end if
- end repeat
-
- notAllTabs -- view results in result window, test this in your program!
- -- it is TRUE if there is some data (other than tabs) in the file
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 1 Nov 1994 08:17:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Anyone have or seen DataScript 2.0?
-
- >Has anyone used or seen a demo of DataScript, an applescript addition that
- >gives apple-event aware applications access to SQL databases?
-
- I have used DataScript and I like it very much. I used it with Butler DAL
- database. The folks at General Knowledge provided excellent support. I ran
- into some bugs and within a couple of days they sent me a new rev that
- fixed that problem.
-
- I recommend it.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Tue, 1 Nov 1994 08:31:10 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Finding every occurence of a delimiter
-
- > A portion of a script I am writing contains a nested repeat loop which I
- >would like to get ride to enhance speed performance. The loop contains a
- >check for every occurence of a tab to see if the file contains data or not.
-
- Some general comments on slow scripts:
-
- You don't say which app you are using but if you can use filter references
- ("whoose" tests) with these objects then you may find a considerable speed
- up.
-
- It follows the rule of thumb: do the most using application commands; do
- the least you can in AppleScript (especially parsing) because it is slow;
- use the fewest number of AppleEvents to performore your task.
-
- The other alternative is to use an application to do the parsing for you.
- You might find MacPerl to be a good choice here.
-
- Choose the correct app.
-
- Work in big chunks.
-
- Don't use AppleScript for parsing.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Tue, 1 Nov 1994 11:45:58 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bob Hassinger <HASSINGER@MERLIN.LMIG.COM>
- Subject: Re: Anyone have or seen DataScript 2.0?
-
- Kee Nethery writes:
-
- >>Has anyone used or seen a demo of DataScript, an applescript addition that
- >>gives apple-event aware applications access to SQL databases?
- >
- >I have used DataScript and I like it very much. I used it with Butler DAL
- >database. The folks at General Knowledge provided excellent support. I ran
- >into some bugs and within a couple of days they sent me a new rev that
- >fixed that problem.
- >
- >I recommend it.
- >
- >Kee Nethery
-
- I am just becoming very interested in Datascript Sequelink. Is that what is
- being referred to? Our Mac network uses Sequelink as the preferred tool to
- access databases on VAXs and other larger systems, and I just started looking
- for a scriptable access to it. This is what was suggested.
-
- Does anyone know if DataScript would be suitable for interacting with the
- something other than standard data bases. For example, the sample DCL server
- that comes with Sequelink? This is a sample custom Sequelink server that is
- used to illustrate how to create your own servers for special applications and
- so on. It can accept and spawn a DCL command on the VAX, and it can read and
- write a VMS RMS sequential file. If I could extended it to access RMS ISAM
- files and control it from an AppleScript it would be the tool I am looking for.
-
- Bob Hassinger
- hassinger@merlin.lmig.com
- =========================================================================
- Date: Tue, 1 Nov 1994 09:22:26 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Anyone have or seen DataScript 2.0?
-
- OK, I admit, I'm just a customer who uses DataScript and I like it. I
- cannot answer most of these questions. I use it with Butler DAL Server from
- Everyware. The authors of DataScript (and it's off-shoots) are very
- responsive (or at least they have been when I contacted them for info). May
- I suggest folks ask them specifics directly. They can be reached at:
-
- General Knowledge
- they are in the UK
- +44 202 746 026
- knowledgable@applelink.apple.com
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Tue, 1 Nov 1994 09:28:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: QuarkXpress 3.31 NameBoxes Examples problem (UserLand)
-
- At 08:55 10/31/94, Alexander Lipman wrote:
-
- >I have a problem running NameBoxes example script shipped with Quark. It
- >generates the error message: "QuarkXpress" reported the following error:
- >"Can't interpret the object specification."
- >
- >It seems to me that there is a mis something in a a
- >system.macintosh.core.get verb.
-
- Unfortunately, I don't have a copy of the script in question (it's not on
- the XPress demo version I have available). The Frontier Runtime which
- ships with the demo XPress is 2.0.1...what version do you have there?
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Tue, 1 Nov 1994 09:29:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
-
- At 03:36 10/30/94, Jeremy Quinn wrote:
- >I would like to make this script available on gaea. Another thing I never
- >worked out with Frontier is how to make an installer, that includes scripts
- >from different locations in my DB. There are components of this script
- >scattered around my Frontier/Runtime root in:-
- >
- >system.verbs.apps.Eudora (2 additions to glue table)
- >system.verbs.apps.Eudora.eventinfo (1 addition)
- >system.verbs.apps.Mozilla (NetScape's glue table)
- >system.menubars.CSOm (1 menu)
-
-
- I would suggest looking at some of the installers from UserLand. The basic
- idea, when you have lots of little parts to adjust, is to have a folder
- containing each of those parts as an exported object, and a desktop script
- which loops over all the files in that folder, doing the appropriate thing
- for each type of file.
-
- There's a good chance that you already have a sample in your database, at
- deskscripts.installer.
-
- This would have to be customized for your particular purpose...you wouldn't
- want to replace someone's customized Eudora menubar, but rather make your
- new commands available in it. That scripting can be a little tricky...it
- might be better to put a menubar object into the user's scratchpad, and let
- him/her copy commands into the Eudora menubar from there.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Tue, 1 Nov 1994 13:06:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
- Subject: FaceSpan
-
- I have a FaceSpan project which shuttles images and text around among
- FileMaker Pro, Kudo Image Broswer, and QuarkXPress.
-
- When I open my FaceSpan project and click "Project Script", there
- is a delay while Quark launches. But neither FileMaker nor Kudo
- launches.
-
- I would think that clicking "Project Script" would never do anything
- more than put up an editing window to let me edit my project script.
- Why ANYTHING would launch just because I'm about to edit, escapes me.
-
- I have one block of script (attached to window, by the way, which is
- at this point closed) which launches FileMaker, Kudo, and Quark....if
- that script were somehow being kicked off, I might understand that
- all three app's would launch.
-
- I cannot find anywhere, among any of my scripts, where I have
- statements which would only launch Quark.
-
- So I have concluded that FaceSpan, for reasons know only to it (at this
- point), is deciding to launch Quark when I try to edit my global script.
-
- Any suggestions as to why this is happening? Have I failed to read
- some essential bit of documentation?
- =========================================================================
- Date: Tue, 1 Nov 1994 10:30:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: aete template
-
- >Does anyone have a template to edit 'aete's? I've heard rumors of such a
- >thing, but a check of the usual archive sites yielded nothing. Pointers to
- >it or a copy of it in the mail would be much appreciated.
- >
- There is an old one for ResEdit, but it won't work on most
- applications since it chokes on even slightly large 'aete's.
-
- The BEST tool for editing 'aete's is Resorcerer!!! (and/or Rez).
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 1 Nov 1994 10:33:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: variable assignments/declarations
-
- Is the following true?
-
- set x to "foo" == copy "foo" to x
-
- this is just syntax, right?
-
- Also, what is the difference between "global" and a property
- declaration? What is the difference between "set"/"copy" and "local"?
-
- I'm too broke for the language reference :-\
-
- Thanks,
- Jason
-
-
- --
- Jason Frankovitz - jfrankov@indiana.edu - Indiana University Biocomputing
- Ontogeny recapitulates phylogeny. Duh.
- =========================================================================
- Date: Tue, 1 Nov 1994 20:18:16 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alberto.V" <albertov@MOSKVA.DOCS.UU.SE>
- Subject: FaceSpan_List
-
- Well, by the demand of some people, I'll post the
- "Next FaceSpan Version Feature List". I laid my hands on it
- when it was posted on comp.sys.mac.programmer by Jeff Johnson
- (jkjonson@znet.com). Jeff's comments are included before the list.
-
- Enjoy!!
-
- Alberto.V
-
-
-
-
- Howdy!
-
- At the request of albertov@Moskva.DoCS.UU.SE, I'm posting a list of
- features for the next version of FaceSpan which I got from AppleLink.
- This is an official feature list by the hand of Uncle Dave himself, posted
- in the Developer Support area, under the topic "Interface Builder
- Discussion", in the June 1994 archive folder.
-
- I hope this gets everyone else as excited about the next version as I am.
- Can't wait for that drag & drop support!
-
- Hello:
-
- At the World-Wide Developers' Conference, SDU showed FaceSpan and
- discussed some
- of the features under development. Some features expected in the next version
- are:
-
-
- examine the state of modifier keys and the mouse. So too, you'll be able to
- examine the screen, set the cursor and change the contents of the clipboard.
-
-
- textboxes, and have greater control over interactions with the user. You will
- also be able to get and set non-textual data types with the help of such
- keyfilters.
-
-
- without
- formulas. It includes resizable rows, columns and in-cell editing.
-
-
- Pascal) to implement table features in any way you wish. The calls to your TDEF
- will be event-based, giving you very precise control of the table's appearance
- and behavior.
-
-
- written in any OSA-compatible scripting languages that you have installed, not
- just AppleScript.
-
-
- project, so that the project will be completely self-contained (except for
- AppleScript).
-
-
- Script Editor.
-
-
- documents
- in the Scriptable Text Editor can be scripted, giving you access to characters,
- words and paragraphs, and their fonts, sizes and styles.
-
-
- in reference to window items, too.
-
-
- editing environment while building projects. - Your interface items will be
- draggable and droppable.
-
-
- default or prototype project.
-
-
- default or prototype window.
-
-
- positions.
-
-
- stops are, so that meta-characters within entries are no longer necessary. A
- similar property for gauges and menus allow forms to accept configuration
- information from outside the form itself.
-
-
- itself. Each item can be set to stay where it is; to move vertically or
- horizontally or both, keeping the same size; or to grow vertically or
- horizontally or both, in proportion to the window's growth.
-
-
-
-
-
- FaceSpan is great now--and getting better still. You should start using
- FaceSpan
- for your scripting projects right away, so you will be ready to make use of all
- these new features!
-
- We will begin alpha seeding in a couple of weeks...
-
- Uncle Dave
-
- Author: LEE.BUCK
-
- --
- =========================================================================
- Date: Tue, 1 Nov 1994 15:01:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: variable assignments/declarations
-
- >Is the following true?
- >
- >set x to "foo" == copy "foo" to x
- >
- >this is just syntax, right?
- >
-
- well, no.
- in the case of "set", you are getting a reference or pointer to an object.
- in the case of "copy" you are getting a new copy of an object
-
- for example:
-
- set listy to {"a", "B"}
- (in this case set and copy are the same since the object is a literal)
-
- set myVar to item 1 of listy
- (myVar now holds "item 1 of listy")
-
- copy item 1 of listy to myVar
- (myVar now holds "a")
-
- >Also, what is the difference between "global" and a property
- >declaration? What is the difference between "set"/"copy" and "local"?
-
- local just declares a local variable. it's useful for decalring a variable
- you use in a loop but access after the loop.
-
- globals are visible to all handlers in a script
-
- properties retain their values between runs (but loose them when you
- recompile the script)
-
- >
- >I'm too broke for the language reference :-\
-
- $30 for the complete applescript handbook. really.
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 1 Nov 1994 15:19:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
- Subject: Re: aete template
-
- Leonard Rosenthol <leonardr@NETCOM.COM> responded:
- > >Does anyone have a template to edit 'aete's? I've heard rumors of such a
- > >thing, but a check of the usual archive sites yielded nothing. Pointers to
- > >it or a copy of it in the mail would be much appreciated.
- > >
- > There is an old one for ResEdit, but it won't work on most
- > applications since it chokes on even slightly large 'aete's.
- >
- > The BEST tool for editing 'aete's is Resorcerer!!! (and/or Rez).
-
- There's also a Hypercard stack that reads and (in principle) writes
- aete resources. Someone from this list sent to me once; I think it was
- originally distributed on one of the developer CDs. Since I still have
- the .sit.hqx copy on my account here, it would be easy to pass it on if
- you (the original poster whose name I've lost) are interested.
-
- Cheers,
-
- Tom
- -------------------------------------------------------------------------
- W. Thomas Pollard Department of Chemistry
- pollard@cucbs.chem.columbia.edu Columbia University
- -------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 1 Nov 1994 12:17:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: FaceSpan_List
-
- "Alberto.V" <albertov@MOSKVA.DOCS.UU.SE> posted Lee Bucks message
- originating from Uncle Dave.
-
- > Hello:
- >
- > At the World-Wide Developers' Conference, SDU showed FaceSpan and
- >discussed some
- > of the features under development. Some features expected in the next version
- > are:
- >
- >
- > examine the state of modifier keys and the mouse. So too, you'll be able to
- > examine the screen, set the cursor and change the contents of the clipboard.
- >
- >
- > textboxes, and have greater control over interactions with the user. You will
- > also be able to get and set non-textual data types with the help of such
- > keyfilters.
- >
- >
- >without
- > formulas. It includes resizable rows, columns and in-cell editing.
- >
- >
- > Pascal) to implement table features in any way you wish. The calls to
- >your TDEF
- > will be event-based, giving you very precise control of the table's appearance
- > and behavior.
- >
- >
- > written in any OSA-compatible scripting languages that you have installed, not
- > just AppleScript.
- >
- >
- > project, so that the project will be completely self-contained (except for
- > AppleScript).
- >
- >
- > Script Editor.
- >
- >
- >documents
- > in the Scriptable Text Editor can be scripted, giving you access to
- >characters,
- > words and paragraphs, and their fonts, sizes and styles.
- >
- >
- > in reference to window items, too.
- >
- >
- > editing environment while building projects. - Your interface items will be
- > draggable and droppable.
- >
- >
- > default or prototype project.
- >
- >
- > default or prototype window.
- >
- >
- >positions.
- >
- >
- > stops are, so that meta-characters within entries are no longer necessary. A
- > similar property for gauges and menus allow forms to accept configuration
- > information from outside the form itself.
- >
- >
- > itself. Each item can be set to stay where it is; to move vertically or
- > horizontally or both, keeping the same size; or to grow vertically or
- > horizontally or both, in proportion to the window's growth.
- >
- >
- >
- >
- >
- > FaceSpan is great now--and getting better still. You should start using
- >FaceSpan
- > for your scripting projects right away, so you will be ready to make use
- >of all
- > these new features!
- >
- > We will begin alpha seeding in a couple of weeks...
- >
- > Uncle Dave
-
- Couldn't resist commenting.
-
- Hmmm, this posting is a little like FaceSpan 1.0 in that its only half
- there with a lot of annoying bugs but you can still see sorta what they
- meant.
-
- I'm making a little list of these anyone from SDU care to mail me?
-
- To Alberto: care to repost this document?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Tue, 1 Nov 1994 12:17:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: variable assignments/declarations
-
- >Is the following true?
- >
- >set x to "foo" == copy "foo" to x
- >
- >this is just syntax, right?
- >
- >Also, what is the difference between "global" and a property
- >declaration? What is the difference between "set"/"copy" and "local"?
- >
- >I'm too broke for the language reference :-\
- >
- >Thanks,
- >Jason
- >
- >
- >--
- >Jason Frankovitz - jfrankov@indiana.edu - Indiana University Biocomputing
- > Ontogeny recapitulates phylogeny. Duh.
-
- Nope there different (as I showed myself this morning! Coincidence, uh).
-
- In there particular case these isn't a difference (because you can mutate
- parts of a string -- its all or nothing).
-
- set makes a reference to (a pointer to, in other languages or a shallow
- copy) the item "foo" whereas copy actually copies the data (a deep copy).
-
- You can see the difference in the following:
-
- Run this and look at the result:
-
- set x to {foo:"foo"}
- set y to x
- set foo of x to "bar"
- {x, y}
-
- x and y refer to the same item.
-
- then run this and look at the result:
-
- set x to {foo:"foo"}
- copy x to y
- set foo of x to "bar"
- {x, y}
-
- x and y refer to two different items.
-
- See AS Language Guide p89 and p113 for the definitive scoop.
-
- BTW, does anyone have a "reasonable" use for the alternate form of set
-
- set y to 3
-
- can also be written
-
- 3 returning y
-
- Has anyone actually used this form to make code more readable?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Tue, 1 Nov 1994 15:05:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: What broke my script?
-
- Hi folks,
-
- This comes from a compiled script. When I try to check the syntax to
- recompile it, AS complains that "does not contain" in the if clause should
- be a comma. The script was compiled (by me) originally with AS 1.1 (from
- the Scripters' kit) and probably recompiled with whatever came with 7.5.
- It won't compile now, tho.
-
- It RUNS fine, tho. What's up here, does anyone know?
-
- tell application "Eudora"
- get field "from" of message ""
- set MyFrom to my GetHeaderContents(result)
- reply message "" with quoting
- if (field "to" of message 0 does not contain MyFrom) <option-l>
- then
- set field "to" of message 0 to MyFrom
- set field "cc" of message 0 to ""
- else
- set field "cc" of message 0 to ""
- end if
- save message 0
- activate
- end tell
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Tue, 1 Nov 1994 15:53:32 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gene Barkin <Gene_Barkin@SMTPGW.MUSC.EDU>
- Subject: Putting away a volume witho
-
- REGARDING Putting away a volume without using the finder
- I need a way to:
- 1) connect to a server;
- 2) run an application;
- 3) "put away" the server volume after the user quits the application.
-
- I can do this using the finder with the following as a stay open script:
-
- tell application "Finder"
- activate
- select file "the application"
- open selection
- end tell
-
- on idle
- try
- tell application "Finder"
- select disk "the volume"
- put away selection
- end tell
- return 30
-
- on error
- tell application "Finder"
- set foo to name of processes
- end tell
- if foo does not contain "the application" then
- tell me to quit
- end if
- end try
-
- end idle
-
- However, since not all our users have system 7.5, I need a way to do this
- without the scriptable finder. Any suggestions? (Also, feel free to improve
- on the above routine).
-
- Thanks,
-
- Gene
- "Nothing seems to work, and neither does anything else"
- =========================================================================
- Date: Tue, 1 Nov 1994 15:57:17 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
- Subject: Re: Anyone have or seen DataScript 2
-
- > And you got the demo from...?
- > _____________________________________________________________________________
- >
- > Reply to: RE>Anyone have or seen DataScript 2
- > I got a demo of DataScript. Looks cool, but it doesn't run against
- > Tandem SQLCI databases, so I never really put any time into the it.
- > They were generous enough to send me the demo, but it did take a long
- > time...
-
- _I_ got it from General Knowledge, via email <knoledgeable@applelink.apple.com.
- Took less than 24 hours. I also uploaded the demo to the incoming directory
- at gaea. It's the Sybase/Open Client version, but it should be instructive, at
- least syntactically, for any platform.
-
- At our UG's AppleScript SIG last month, somebody who had actually used
- DataScript for an Oracle/Excel/CAD application said that it worked, but didn't
- report back SQL errors.
-
- FWIW.
-
- Mike
-
-
- --
- Mike Hon
- Software Consultant honmt@txpcap.hou.xwh.bp.com
- Precision Task Group Houston, TX 713/560-3017
- =========================================================================
- Date: Tue, 1 Nov 1994 14:28:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Opening a FM database over the net?
-
- I tried the script:
-
- tell application "Filemaker Pro"
- activate
- open file "file" of machine "machine" of zone "zone" with password
- "password"
- end tell
-
- And I always get "file" cannot be found. Of course I substitute all my
- appropriate zone, file, and machine name variables. It works fine if I open
- a database file on my own Mac (but what's the point of that?). Anyone done
- this across zones? Any way to have it give you a list of available
- databases? Any troubleshooting hints you'd like to share?
-
-
-
- -- Michael
-
-
- _____________________________________________________________________________
- Michael Robertson - MR Mac (619) 534-5107 office
- Macintosh Business Consultant (619) 989-8943 pager
- San Diego Supercomputer Ctr. (619) 534-5152 fax
-
- Internet, America Online robertso@sdsc.edu
- _____________________________________________________________________________
- =========================================================================
- Date: Tue, 1 Nov 1994 18:06:08 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
- Subject: Re: Opening a FM database over the net?
- In-Reply-To: <aadc6244020210035602@[132.249.200.67]>
-
- >I tried the script:
- >
- >tell application "Filemaker Pro"
- > activate
- > open file "file" of machine "machine" of zone "zone" with password
- >"password"
- > end tell
- >
- >And I always get "file" cannot be found.
-
- Near as I can figure, you NEED to be running FileMaker Pro 2.1v3 and
- have FileMaker Network version 2.1v4
-
- I tried running a similar script on some machines around here that were
- running earlier versions of FMPro and got the same result. So, I
- updated to 2.1v3 and everything worked just fine. You can download the
- update from somewhere, but I can't remember exactly. Try ftp.claris.com
-
- Kevin
- =========================================================================
- Date: Tue, 1 Nov 1994 20:08:59 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Haggerty <haggerty@UCS.INDIANA.EDU>
- Subject: Re: Scripting FileMaker PRO
-
- You might try something like this, which works for me-
-
- set TheTitle to "THIS IS A TEST TITLE"
- tell application "FileMaker Pro v2" of machine "Quadra840" of zone "Optometry"
- Show Layout "Review" of Window "94 Review db"
- Show (every Record whose Cell "Title" = TheTitle)
- set TheAbstract to Cell "Abstract"
- end tell
- return TheAbstract
-
- When you try to run this, or just check the syntax, you will be prompted
- to log on to the Mac where FileMaker lives. This remote Mac must have
- program linking turned on, and you must have access rights (file sharing
- need not be turned on, but it may help in debugging). If you have problems
- with FileMaker pausing to display dialog boxes, you could try writing a
- FileMaker script to do the job (under the FileMaker 'Scripts' menu) and
- using the [No dialog] modifier.
-
- >>Hello
- >>
- >>I am slowly working my way through the Tao of Applesrcipt. What
- >>I ultimatly would like to do is control Filemaker Pro remotely
- >>via Apple Scripts.
- >>
- >>Is there any sample script code for use with FileMaker Pro
- >>that I could use as an example?
- >
- >FileMaker Pro is written so that it will not accept Apple events from
- >remote machines.
- >
- >You would need something running on the machine with FileMaker which does
- >accept remote events, and turns them into Apple events for FileMaker, then
- >passes the results back to your remote machine.
- >
- >Above may or may not be true with FileMaker Server.
- >
- > --John
- >
- >--
- >jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- Kevin Haggerty ______________
- Scientific Systems Dvlpr _______--_--_______
- School of Optometry _____---___-_-___---______
- Indiana University _________--___-_-___--__________
- 800 E. Atwater Ave. ______--___-_-___--_______
- Bloomington IN 47405 ___---__-_-__---____
- haggerty@indiana.edu __---__-__---___
- http://research.opt.indiana.edu __ -_- ___
- =========================================================================
- Date: Wed, 2 Nov 1994 16:36:59 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
- Subject: Re: DataScript
- In-Reply-To: <199411020659.OAA00997@uniwa.uwa.edu.au> from "Automatic digest
- processor" at Nov 2, 94 00:00:42 am
-
- I've used DataScript v1.x and 2.0 with a VAX and Macintosh Oracle host
- via DAL and SQLnet. I wrote a review for the September 94 MacNews - not
- much use to those of you outside Australasia! In summary - it is an
- excellent product which works as advertised.
-
- You need to get the right version for your database. DataScript supports
- DAM/DAL, Oracle, SequeLink and Sybase.
-
- Regards,
-
- Todd
- =========================================================================
- Date: Wed, 2 Nov 1994 02:58:14 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
- Subject: RE>FaceSpan/QuarkXPress
-
- >> [Dana E. Cartwright 315-442-9104]:
- ...I cannot find anywhere, among any of my scripts, where I have
- statements which would only launch Quark.
- Any suggestions as to why this is happening? Have I failed to read
- some essential bit of documentation? <<
-
- AppleScript is automatically launching QuarkXPress because XPress has
- a bit set in its 'scpt' resource which indicates that it has a dynamic
- terminology. XPress's terminology is 'dynamic' because XTensions can
- be scriptable and thus add to XPress's terminology. AppleScript
- thus has to launch XPress the first time it compiles a script using
- any XPress objects or commands in order to ask it for its terminology.
-
- Dave Shaver
- Acrobyte R&D
- =========================================================================
- Date: Wed, 2 Nov 1994 12:13:56 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alberto.V" <albertov@MINSK.DOCS.UU.SE>
- Subject: FaceSpanList_Repost
-
- Hmm, my first try didn't succed, so I'll try again to post the
- "Next FaceSpan Version Feature List". I laid my hands on it
- when it was posted on comp.sys.mac.programmer by Jeff Johnson
- (jkjonson@znet.com). Jeff's comments are included before the list.
- If this post don't come thrugh send me a notice and I will FTP this
- list to gaea instead.
-
- Enjoy!!
-
- Alberto.V
-
-
-
-
- Howdy!
-
- At the request of albertov@Moskva.DoCS.UU.SE, I'm posting a list of
- features for the next version of FaceSpan which I got from AppleLink.
- This is an official feature list by the hand of Uncle Dave himself, posted
- in the Developer Support area, under the topic "Interface Builder
- Discussion", in the June 1994 archive folder.
-
- I hope this gets everyone else as excited about the next version as I am.
- Can't wait for that drag & drop support!
-
- Hello:
-
- At the World-Wide Developers' Conference, SDU showed FaceSpan and
- discussed some
- of the features under development. Some features expected in the next version
- are:
-
- New application properties. Applications will have properties that let you
- examine the state of modifier keys and the mouse. So too, you'll be able to
- examine the screen, set the cursor and change the contents of the clipboard.
-
- New kind of "keyfilters". You will be able to set up patterns and formats for
- textboxes, and have greater control over interactions with the user. You will
- also be able to get and set non-textual data types with the help of such
- keyfilters.
-
- Table object. The new table object will present a spreadsheet-like grid
- without formulas. It includes resizable rows, columns and in-cell editing.
-
- Custom TDEF support. FaceSpan will accept your own TDEF procedures (in C or
- Pascal) to implement table features in any way you wish. The calls to your
- TDEF will be event-based, giving you very precise control of the table's
- appearance and behavior.
-
- OSA support. The script editor for each interface element will accept scripts
- written in any OSA-compatible scripting languages that you have installed, not
- just AppleScript.
-
- OSAX (scripting addition) embedding. Scripting additions can be added to a
- project, so that the project will be completely self-contained (except for
- AppleScript).
-
- Event logging. You will now be able to log events in a manner similar to the
- Script Editor.
-
- Text Suite Support. Textboxes will be scriptable in the same way that
- documents in the Scriptable Text Editor can be scripted, giving you access
- to characters, words and paragraphs, and their fonts, sizes and styles.
-
- Where clause. The "where" clause will be accepted, not only in textboxes, but
- in reference to window items, too.
-
- Drag & Drop support. Drag & Drop is to be supported in two ways: - In the
- editing environment while building projects. - Your interface items will be
- draggable and droppable.
-
- Custom default project. Any project you designate as such will be used as the
- default or prototype project.
-
- Custom default window. Any window you designate as such will be used as the
- default or prototype window.
-
- An application preference file keeps track of such things as window
- positions.
-
- Format property. Lists will have format properties that tell where the tab
- stops are, so that meta-characters within entries are no longer necessary. A
- similar property for gauges and menus allow forms to accept configuration
- information from outside the form itself.
-
- Growth property. All window items will respond to the growth of the window
- itself. Each item can be set to stay where it is; to move vertically or
- horizontally or both, keeping the same size; or to grow vertically or
- horizontally or both, in proportion to the window's growth.
-
- Printing. Page-oriented and developer-defined printing will be available.
-
- And more...
-
- FaceSpan is great now--and getting better still. You should start using
- FaceSpan for your scripting projects right away, so you will be ready to
- make use of all these new features!
-
- We will begin alpha seeding in a couple of weeks...
-
- Uncle Dave
-
- Author: LEE.BUCK
-
- --
- =========================================================================
- Date: Wed, 2 Nov 1994 07:44:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: FileMaker Pro PICTs
-
- Anyone know a way to get PICTs out of FMP in a script?
-
- This includes repeating Picture fields.
-
- Thanks,
-
- Chuck
- =========================================================================
- Date: Wed, 2 Nov 1994 07:13:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re: Finding every occurence of a delimiter
-
- >Hi all,
- > A portion of a script I am writing contains a nested repeat loop which I
- >would like to get ride to enhance speed performance. The loop contains a
- >check for every occurence of a tab to see if the file contains data or not.
- >Some sample data would like:
- >date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
-
- CUT......
- >
- >Mainly I am looking for a faster routine to find all the tabs in a file and
- >upon finding a non-tab character, exit the routine before the end of file.
- >
- >Thanks,
- > Dave
-
- There were several post that responded to request, another solution is the
- Tokenize OSAX that was in the incoming folder on gaea. I just played with
- it a little, but it seems to do all that AppleScript's text item
- delimiters was supposed to do (more than one delimiter etc), plus a little
- more.
-
- Steve Alex (steve_alex@aidt.edu)
-
- _/_/_/ _/ _/_/_/_/ _/_/_/_/ Alabama Industrial
- _/ _/ _/ _/ _/ _/ Development Training
- _/_/_/_/_/ _/ _/ _/ _/ 75 TechnaCenter Dr.
- _/ _/ _/ _/ _/ _/ Montgomery AL, 36117
- _/ _/ _/ _/_/_/_/ _/ (205) 242-2675
- =========================================================================
- Date: Wed, 2 Nov 1994 10:59:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Robert Viens <viens@PUBNIX.NET>
- Subject: Anyone has see OSAX that does XTND filtering?
-
- I will be very interested in a OSAX that support XTND filtering.
- Does anyone wrote this kind of AS extension? If not, I will
- do It my self. So everybody interested, let me konw!
-
- Regards,
-
- / Robert Viens (viens@pubnix.net) / / 3981, St-Laurent bureau 810 /
- / Soft. Eng. / / Montreal (Quebec) /
- / Les maitres typographes Zibra / / Fax.: 514-288-1599 /
- =========================================================================
- Date: Wed, 2 Nov 1994 08:14:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FaceSpan
-
- >I have a FaceSpan project which shuttles images and text around among
- >FileMaker Pro, Kudo Image Broswer, and QuarkXPress.
- >
- >When I open my FaceSpan project and click "Project Script", there
- >is a delay while Quark launches. But neither FileMaker nor Kudo
- >launches.
-
- The first part of the delay, most likely, is loading the AppleScript
- Scripting Component.
-
- Next, you are running into the fact that there is really (as seen by
- AppleScript) only one script in a FaceSpan project...it's an artifact of
- FaceSpan (and a very nice one!!!) that you edit this one script in chunks,
- as if it were multiple scripts.
-
- Next you encounter the question: what does it mean to open an editing
- window on a script. In AppleScript, one thing it means is decompiling the
- script back into [styled] source code. To do that, the Application's
- "Dictionary" needs to be accessed (for the translations from magic codes
- into [English] terminology. For most apps, this means simply barging in
- and getting the 'aete' resource out of the app's resource fork.
-
- Next you run into: However, XPress "does" drop-in extensions, which *may*
- extend the scripting language. So, based on the behavior you are seeing,
- XPress has the bit set in another resource (not the 'aete') which says "If
- you need my Dictionary, ask *me* for it, don't just grab my 'aete'. Such
- apps want a chance to merge in the 'aete' snippets from the current set of
- drop in extensions. There's an Apple event which AppleScript sends to
- XPress for that purpose...clearly XPress needs to be running to do that.
-
- >I would think that clicking "Project Script" would never do anything
- >more than put up an editing window to let me edit my project script.
- >Why ANYTHING would launch just because I'm about to edit, escapes me.
- >
- >I have one block of script (attached to window, by the way, which is
- >at this point closed) which launches FileMaker, Kudo, and Quark....if
- >that script were somehow being kicked off, I might understand that
- >all three app's would launch.
- >
- >I cannot find anywhere, among any of my scripts, where I have
- >statements which would only launch Quark.
- >
- >So I have concluded that FaceSpan, for reasons know only to it (at this
- >point), is deciding to launch Quark when I try to edit my global script.
- >
-
- Simple, right? [I think the above is mostly correct...I'm sure Jon Pugh
- will adjust any problems, as well he should!]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 2 Nov 1994 09:37:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kathleen Scalise <KMS@PA.UREL.BERKELEY.EDU>
- Organization: Public Affairs
- Subject: filemaker and html
-
- I'm having filemaker return data to my world wide web server. My problem is that
- filemaker is sticking "," between the contents of each record and messing up my
- html
- output. I've got the data in the records formatted with embedded html commands,
- so
- I'd like filemaker just to return the text contents of the fields I want without
- adding anything--tabs would be okay but things like commas and quotes are no
- good. I
- can solve the problem by exporting from filemaker to a file and having
- scriptable
- text editor clean up the file, but it makes the whole script run way too slow.
- Any
- tips for getting clean text from filemaker? Here's the part of the script
- that's a
- problem:
-
- else
- tell application "FileMaker Pro (sect)"
- Show (every Record of Window "testfile" whose Cell "CourseNumber
- " contains
- http_search_args)
- copy Field "CourseDesc" of Window "testfile" to TheAbstract
- end tell
- end if
- return TheAbstract
- =========================================================================
- Date: Wed, 2 Nov 1994 14:35:19 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: How do I send events to a Face Span applet?
-
- I have Filemaker sending an event to an applet created with the script
- editors. Filemaker sends:
-
- event class: FMPX
- event ID: INAC
-
- My applet contains:
-
- on =ABevent FMPXINAC=BB
- initiateCall()
- end =ABevent FMPXINAC=BB
-
- This works fine. When I try the same thing with a FrontMost (or FaceSpan)
- compiled applet, it never seems to receive the event. I pasted the
- identical code from my old working applet into the project script and could
- not get it to trigger. I am doing something wrong or do Frontmost applets
- not receive events?
- Thanks in advance.
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Wed, 2 Nov 1994 14:08:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Aaron B. Freimark" <aaron@MED.CORNELL.EDU>
- Subject: Writing to a text file
-
- Is there an osax which will allow me to read from and write to a text file?
- I know I can do this with the Scriptable Text Editor, but it seems a bit
- clunky.
-
- Missing that, how about pasting from and copying to the clipboard?
- AppleScripts. Since FoxPro can't get responses from AppleScripts directly,
- I figure I need to go through a file or through the cipboard. Maybe
- there's a solution I've missed?
-
- Thanks in advance,
-
- -- Aaron
-
-
- ________________________________________________
- Aaron B. Freimark <aaron@med.cornell.edu> Nu?
- User Support, Cornell University Medical College
- =========================================================================
- Date: Wed, 2 Nov 1994 11:22:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: FaceSpan
-
- >Next, you are running into the fact that there is really (as seen by
- >AppleScript) only one script in a FaceSpan project...it's an artifact of
- >FaceSpan (and a very nice one!!!) that you edit this one script in chunks,
- >as if it were multiple scripts.
-
- Would those that know care to exapand on this?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 2 Nov 1994 14:44:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Daniel Berlinger <Daniel@CIRCUMTECH.COM>
- Subject: MacPerl/OSA/AS/Frontier
-
- --part_AADD56680010276E00000001
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- The concensus seems to be:
-
- Perl had some the of the best text mangling capabilities
- It is very useful as an agent for MacHTTP
- It is generally worth the bother, regardless of cross platform issues (which
- only server to enhance its value)
-
- If someone who has some MacHTTP scripts that they wouldn't mind sending me I'd
- love to look at them.
-
- I know that OSA compliance (be it limited to PowerMacs or not) would certainly
- add value to MacPerl for me. I already use Frontier extensively and would love
- to be able to add the strengths of Perl to Frontier in the same way I can add
- Applescripts power. Frontier makes it easy to create "objects" that can be
- called from a Frontier script and you can pass entire execution sequences just
- as easily.
-
- Thank you all for your time,
-
- I guess I have to really sit down and work my way through the O'Reilly books.
-
- Daniel
-
- --part_AADD56680010276E00000001
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- Daniel Berlinger Daniel@circumtech.com
- "I wasnt thinking...
- ...obviously this doesn't matter to my point."
-
- Administrator of Information Systems Circumstance Technology
- --part_AADD56680010276E00000001--
- =========================================================================
- Date: Wed, 2 Nov 1994 14:53:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: filemaker and html
- In-Reply-To: <no.id> from "Kathleen Scalise" at Nov 2, 94 09:37:00 am
-
- --Kathleen Scalise wrote:
- >
- >else
- > tell application "FileMaker Pro (sect)"
- > Show (every Record of Window "testfile" whose Cell "CourseNumber"
- > contains http_search_args)
- > copy Field "CourseDesc" of Window "testfile" to TheAbstract
- > end tell
- >end if
- >return TheAbstract
-
- Your problem with this script is the fact that you are returning an
- AppleScript List object. List objects have their elements separated by
- commas. If you don't want any separation you can simply change the last
- statement to "return TheAbstract as text". This will remove all
- delimiters from the items in the list. If you would prefer to have a
- specific delimiter (like a tab) you need to use something like this:
-
- set oldDelimiters to AppleScript's Text Item Delimiters
- set AppleScript's Text Item Delimiters to {tab}
- return text items of TheAbstract
- set AppleScript's Text Item Delimiters to oldDelimiters
-
- -Hades
- =========================================================================
- Date: Wed, 2 Nov 1994 18:14:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: An Obvious Question?
-
- It must be right under my nose but I cannot figure out how to issue a
- command to another application and continue my script without waiting for a
- response.
-
- tell application "foo"
- doSomething()
- --don't wait for result, keep going!!
- end tell
- .
- .
- .
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Wed, 2 Nov 1994 17:12:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
-
- AS folk,
- The following "Finder Scripting Toolkit" code moves files, but it will not
- more invisible files.
-
- on DragObjects(dst, objs)
- tell application "Finder" to <event FNDRmove> dst given <property
- fsel>:objs
- end DragObjects
-
- Can this code be changed to move all files, including invisible files? I
- suspect one could change the "property" statement to include invisible
- files.
- Thanks,
- Chris
- ~~~~
- Chris Dowling, Manager, SOE Computer Lab,
- 1025 W. Johnson St., Madison, WI 53706, (608) 263-4339
- cdowling@facstaff.wisc.edu
- ~~~~
- =========================================================================
- Date: Wed, 2 Nov 1994 16:06:35 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joe Alvarez <jalvarez@BEACH.SILCOM.COM>
- Subject: Quickeys and AS- problem getting scripts running
-
- I haven't heard much talk about Quickeys [QK] here. I've just started to
- use Quickeys and AppleScript together and I'm afraid I still have a lot to
- learn.
-
- Using the QK Applescript external, I've been trying to do a very simple and
- useful script. I have a PPP connection to Internet and I'd like to turn on
- the MacTCP switch in Eudora and then open PPP using the "Mac PPP control"
- scripts and Scripting addition I found on the Net.
-
- I know there's a number of ways to do this, but this is what I tried:
-
- I save a script as Script Editor text document which looks like this--
-
- if not (PPPopened) then
- tell application "Macintosh HD:Eudora :Eudora 2.1:Eudora2.1"
- set setting 84 to "n"
- set setting 27 to "n"
- end tell
- openPPP
- else
- display dialog "MacPPP is already open" buttons {"OK"} default
- button "OK"
- end if
-
- {The first part sets the Eudora switch to MacTCP (vs. Comm Toolbox.)} I
- then use QK to invoke the script
-
- I get an "AS error. User interaction not allowed" alert (as best as I can
- recall.) This makes my system lockup till I force-quit the QK Toolbox.
-
- If the "tell..." part and the openPPP parts are invoked separately, they
- work fine. Together, I get that message.
-
- Can someone explain how to combine these 2 pieces?
-
- Also, I avoid using Applescript self-running applications because I don't
- want to see the beachball. From QK, which is better--compiled or
- non-compiled text?
-
- Also, I originally tried this scipt from within QK, but got the same error
- message. I then assumed (probably incorrectly) that QK cannot address a
- scripting addition--though now I'm not sure what to think. The QK
- documentation is real sparse here. Any pointers to more info on Quickeys
- and AS would be most appreciated!
-
- TIA
-
- Joe Alvarez
-
-
- ++----------------------------------------------------------------------++
- Joe Alvarez - Applied Computer Solutions // jalvarez@beach.silcom.com
- http://www.rain.org/~jalvarez/sig.html >< Finger for PGP public key
- =========================================================================
- Date: Wed, 2 Nov 1994 16:46:03 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: An Obvious Question?
-
- >It must be right under my nose but I cannot figure out how to issue a
- >command to another application and continue my script without waiting for a
- >response.
- >
- >tell application "foo"
- >doSomething()
- >--don't wait for result, keep going!!
- >end tell
- >.
- >.
- >.
- >
- >Mark Hadfield
- >hadfield@sickkids.on.ca
- >The Hosptial For Sick Children
-
- Use the:
-
- ignoring application responses
- ...
- end
-
- block
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 2 Nov 1994 19:59:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Writing to a text file
-
- >Maybe there's a solution I've missed?
-
- Version 1.1 of AppleScript includes OSAXes to read and write text files.
-
- Danny
- =========================================================================
- Date: Wed, 2 Nov 1994 21:28:59 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joe Campbell <jpcampb@AFTERLIFE.NCSC.MIL>
-
- get MACSCRPT LOG9410
- =========================================================================
- Date: Wed, 2 Nov 1994 23:02:00 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Writing to a text file
-
- >Is there an osax which will allow me to read from and write to a text file?
- >I know I can do this with the Scriptable Text Editor, but it seems a bit
- >clunky.
-
- The read/write commands that are part of AppleScript 1.1 allow you to read
- from and write to standard text files. In fact, I'm using one now to log my
- PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
- ships as part of System 7.5.
-
- >Here's why: I'm trying to get FoxPro (2.6) to communicate with my
- >AppleScripts. Since FoxPro can't get responses from AppleScripts directly,
- >I figure I need to go through a file or through the cipboard. Maybe
- >there's a solution I've missed?
-
- Filemaker Pro can't directly communicate with AppleScripts, either, but
- I've written an applet called List Processor that runs scripts based on an
- 'oapp' AppleEvent sent to List Processor with the name of the script
- attached. If you can send Apple Events from FoxPro, that solves having Fox
- Pro communicate with AppleScript. Getting data back into FoxPro could be
- more challenging. The clipboard is definitely an option if you're using
- Jon's Commands, or in some cases, the scriptable Finder.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Wed, 2 Nov 1994 22:11:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
- Subject: Various questions
-
- Hello everyone,
-
- I am new to this mailing list, and have been learning AppleScript for the
- past few months. I am very impressed with it, but am having one problem
- that i can't find a solution for:
-
- How do you select a folder? There is the choose file command, but i
- need to select a folder, so i can use the finderLib function
- "moveFilestoTrash". Does anyone know how to do this?
-
- Thanks in advance,
-
- eric brunick
- =========================================================================
- Date: Wed, 2 Nov 1994 23:34:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 1 Nov 1994 to 2 Nov 1994
-
- John W. Baxter <jwbaxter@OLYMPUS.NET> wrote:
-
- >Next you run into: However, XPress "does" drop-in extensions, which *may*
- >extend the scripting language. So, based on the behavior you are seeing,
- >XPress has the bit set in another resource (not the 'aete') which says "If
- >you need my Dictionary, ask *me* for it, don't just grab my 'aete'. Such
- >apps want a chance to merge in the 'aete' snippets from the current set of
- >drop in extensions. There's an Apple event which AppleScript sends to
- >XPress for that purpose...clearly XPress needs to be running to do that.
-
- >...
-
- >Simple, right? [I think the above is mostly correct...I'm sure Jon Pugh
- >will adjust any problems, as well he should!]
-
- No problems here. My only question is, are there any extensions which *do*
- extend the language? If not, this bit could be turned off and this
- especially annoying behavior averted. Given the benefit of hindsight, I
- think it would have been better to do something like having the resource
- list folders and file types to search for extension aetes. That way you
- wouldn't have to launch. Unfortunately, that's not general enough to cover
- all the possibilities, so launching is required. If it's not being used
- though, it would be nice to turn it off.
-
- If you do want to turn it off, simply clear the high order bit (0x8000) of
- the scsz resource. It's just a long.
-
- Jon
- =========================================================================
- Date: Thu, 3 Nov 1994 08:03:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: List of Lists
-
- How does one create a list of lists from an existing series of lists?
-
- I've can generate a series of lists based on rearranging a series of
- repeating fields from FileMaker Pro.
-
- However, for what I'm trying to do, I think I need to generate a list of
- lists.
-
- How do I do such a thing?
-
- I've tried such things as...
-
- set totalList to totalList & newListElement
-
- But all I get is a never ending list.
-
- Help...
-
- Thanks,
-
- Chuck
- =========================================================================
- Date: Thu, 3 Nov 1994 14:29:45 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Tokenize Bug Fix & New OSAXen
-
- A bug surfaced yesterday in the Tokenize 1.0 OSAX and has since been fixed,
- but I need to ask everyone using Tokenize to upgrade as soon as possible
- since the bug could be a little nasty in some situations. The problem will
- only occur if any of the tokens being returned are longer than 255
- characters. If they are, random memory will be flattened like cake under a
- truck (that's lorry for some of you) tire (that's tyre for som...).
-
- I've just uploaded to the incoming directory at gaea an archive with about a
- half dozen OSAXen in it, one of which is Tokenize 1.1. Here's a short blurb
- on what the other toys do.
-
- * Tokenize
- Parses text into "tokens" based on a list of delimiters. Easier and more
- powerful than using AppleScript's text item delimiters.
-
- * Detokenize (Join List)
- Once you've tokenized your text to death, put all those items back together
- with complete control over what to separate the items with, and where the
- separators should be placed. (Lots of options, and I'll add more if someone
- can think of any it should have.)
-
- * Offsets Of
- Improves upon the offsets of osax which comes with GTQLib. No limit on
- string sizes and accepts either a string or a list of strings to search in.
-
- * Change Case
- Changes the case of text to any of the following:
- {upper/lower/title/sentence/toggle/who cares}
- (You must be dying to know what _who cares_ does.... )
-
- * Balloon Help
- Turns balloon help on, off, or returns status of BH.
-
- * Replace
- Replaces a string or list of strings in a piece of text by another string.
-
-
- If anyone would prefer, I would be happy to mail you a copy of these. Send a
- private message (not to the list) to me.
-
- All of these are freeware (with a couple restrictions).
-
- Enjoy...
- -wayne
- walrath@cs.indiana.edu
- =========================================================================
- Date: Thu, 3 Nov 1994 09:16:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Writing to a text file
-
- >Filemaker Pro can't directly communicate with AppleScripts...
- >Dennis L. Whiteman
- >THE ULTIMATE FREELANCER
-
- Sure it can! I use the following technique. Works flawlessly except if
- the applescript application holding the events is not loaded. In that case
- the event needs to be sent twice. It works as follows:
- A Filemaker script sending an apple event to the applet.
-
- event class FMPX
- event ID DOIT (whatever four letter word you want to use)
-
- the applet contains
-
- on =ABevent FMPXDOIT=BB
- -- whatever code you want goes here
- --I usually call a handler
- end =ABevent FMPXDOIT=BB
-
- I have FM databases that call over a dozen different events at the click of
- a button. I use it to export data, to sort information, to pass data to
- another database, verify information in a record before the user closes it
- etc.
-
- It is a hack but a highly effective one.
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Thu, 3 Nov 1994 08:29:53 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Tokenize Bug Fix & New OSAXen
- In-Reply-To: Your message of "Thu, 03 Nov 94 14:29:45 +0100"
-
- Good Morning Everyone,
-
- Wayne's new osaxen (thanks, Wayne!) can be found in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/ACME_Script_Widgets.hqx
-
- Hmmmmm.....this is quite a collection. Should have called them Wayne's
- Commands. :-)
-
- pf
- =========================================================================
- Date: Thu, 3 Nov 1994 06:38:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Quickeys and AS- problem getting scripts running
-
- > I get an "AS error. User interaction not allowed" alert (as best as I can
- > recall.) This makes my system lockup till I force-quit the QK Toolbox.
-
- Let me speak for my code in this situation. The MacPPP Control OSAX forces
- user interaction when ever a MacPPP connetion is opened (and in version
- 1.2, when the connection is closed).
-
- This is done because MacPPP presents its progress dialog while establishing
- the connection. The only way around this is to ensure that your script is
- the foreground application prior to calling openPPP or closePPP.
-
- -Mark
- =========================================================================
- Date: Thu, 3 Nov 1994 15:41:36 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dario Lopez =?iso-8859-1?Q?K=E4sten?= <cl2dlope@CLING.GU.SE>
- Subject: Re: FaceSpan 2.0
-
- Jummy!
-
- When? How? How Much?
-
- /dario
-
-
- ____________________________________________________________________________=
- __
- Dario Lopez K=E4sten | Student of Computational Linguis=
- tics
- cl2dlope@hal.cling.gu.se | G=F6teborg University, SWEDEN
- Send e-mail to my son, | [ Macintosh Systems Consultant ]
- Put "To Felix" in the subject field | [ & Part time 4D/Mac Developer ]
- ____________________________________________________________________________=
- __
- =========================================================================
- Date: Thu, 3 Nov 1994 09:50:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: List of Lists
- In-Reply-To: <no.id> from "Charles Bruce Pelto" at Nov 3, 94 08:03:27 am
-
- --Charles Bruce Pelto wrote:
- >
- >How does one create a list of lists from an existing series of lists?
-
- That depends on how you want the list to look...
-
- >I've can generate a series of lists based on rearranging a series of
- >repeating fields from FileMaker Pro.
- >
- >However, for what I'm trying to do, I think I need to generate a list of
- >lists.
- >
- >How do I do such a thing?
- >
- >I've tried such things as...
- >
- > set totalList to totalList & newListElement
- >
- >But all I get is a never ending list.
-
- Try this: set totalList to totalList & {newListElement}
-
- Or the more efficient: set end of totalList to {newListElement}
-
- -Hades
- =========================================================================
- Date: Thu, 3 Nov 1994 10:26:58 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Various questions
-
- >How do you select a folder? There is the choose file command, but i
- >need to select a folder,
-
- AppleScript 1.1 includes a Choose Folder scripting addition.
-
- Danny Goodman
- =========================================================================
- Date: Thu, 3 Nov 1994 10:32:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: List of Lists
-
- >How does one create a list of lists from an existing series of lists?
-
- If you have a variable containing a list and need to make that a nested list
- (like for preparing data for insertion into an Excel range), then do
- something like this:
-
- -- totalList contains a list
- set totalList to {totalList}
-
- Danny Goodman
- =========================================================================
- Date: Thu, 3 Nov 1994 11:28:54 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Choose Item osax
-
- Howdy,
-
- Owen Watson (thanks, Owen!) has uploaded a copy of Choose Item osax that lets
- you display and choose an item from a list. This is copyrighted by ACI and
- comes with a disclaimer that they are "in any case of whatever may happen when
- this osax is used." You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/Choose_Item_osax.sea.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Thu, 3 Nov 1994 11:43:04 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Yet Another Item
-
- Jon Pugh has provided a new aete for HyperCard 2.2 that allows you to
- specify shorthand for AppleScript elements simply by
- including all the various items in the aete. Hypercard has
- "bkgnd", "bkgnd button" and "bkgnd field" defined already.
- This aete has "bg", "cd", "btn", "cd btn", "cd fld", "bg btn",
- & "bg fld". It makes AppleScripting much more HyperTalk-like.
- This has no effect on the scripts you produce, so there
- are no compatibility problems.
-
- In addition, this aete also fixes a bug in the AppleScript Script
- Editor which can cause your dictionary window to come up blank
- if an aete is purgeable. Hypercard's aete is purgeable, so this
- problem could affect Hypercard dictionaries.
-
- Simply replace your Hypercard 2.2 aete resource with this one
- using your favorite resource editor, and you can type the same
- shorthand in AppleScript that you do in HyperTalk.
-
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/HypercardAETE.sit.hqx
-
- Cheers.
-
- pf
- =========================================================================
- Date: Thu, 3 Nov 1994 09:51:02 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
- Subject: Field specs and GTQ sort
-
- )1994, R. Nelson Byrne
- Greg Quinn gave us a wonderful OSAX for sorting records, part of his
- very useful GTQLib 1.2. I had occasion to use it the other day, and
- immediately ran across a problem hinted at in the documentation: how to
- find the secret code that identifies the records. Greg writes:
-
- RIf the list contains records, the records must consist of a field
- specification and a direction as follows:
- {field spec:"unam",direction: ascending order}S
-
- ItTs the field spec weUre talking about here. He says:
-
- Unfortunately, the four character code is difficult to determine without
- having internal knowledge of a record's data structure. Hopefully, some
- day a way will appear to do this by mere field name instead of the
- field's four-character designator.
-
- Well, I donUt know a field spec from a field mouse, but this script is a
- way to discover field specs - clumsy, but what the hey. I noticed that
- some record types, such as Rresource nameS, seem to be known to apple
- script already and receive special treatment, whereas others, such as
- RNovelS in the example below, are unknown and the description of the
- entire record structure appears in the written record.
-
- IUm enclosing the script.
- Nelson
- >>>>>Nelson@nbyrne.SAIC.com
- Nelson Byrne
- SAIC LOC#001/MS#C2
- 10260 Campus Point Drive
- San Diego, CA 92121
- >>>>>(619) 546-6485
-
-
- (This file must be converted with BinHex 4.0)
-
- =========================================================================
- Date: Thu, 3 Nov 1994 11:25:39 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter Boctor <pboctor@MV.US.ADOBE.COM>
- Subject: How to get the zone of mounted volume
-
- Hi everybody,
-
- I am new to the list and this is my first question. I've looked through some of
- the digests of the list and couldn't find an answer to my problem.
-
- My question is : How can I extract the zone and server name of a mounted volume?
-
- I am writing a script that will run when a user is not neccessarily at their
- Mac. When first launched the script asks for a file and sometimes the user will
- point to a file on a server somewhere.
-
- If I just make an alias of this volume and store it I can't mount it when the
- user isn't around to enter their password. So I store their password somewhere
- and use the MountVol() OSAX. But getting the name of the volume isn't enough. I
- also need the zone and server name for MountVol().
-
- Any ideas?
-
- thanks in advance,
- -peter
- =========================================================================
- Date: Thu, 3 Nov 1994 15:38:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: SRList <srlist@RDM.SCITEX.COM>
- Subject: Recordable Applications
-
- Can anyone tell me how to find out what apps are recordable, not merely
- scriptable? The only recordable apps I know of now are:
- System 7.5 Finder
- Scriptable Text Editor
- PhotoFlash
-
- As a beginner, I find it much easier to work with recordable apps -- I can
- basically make my own example scripts.
-
- Has anyone been working with other recordable applications? Which ones? TIA!
- =========================================================================
- Date: Thu, 3 Nov 1994 11:43:52 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Alex Sirota <adapple@APPLE.COM>
- Subject: Dictionary Compiler Script
-
- For all those who have huge scripting additions folder and want to know what
- events those OSAX do here is an enhanced version of Lawrence D'Oliveiro's
- script for extracting those events. If you tried to use Scriptable Text
- Editor to dump the output to you will find that there is a 32k limit. This
- script outputs the dictionary to a file of our choice without 32k
- limitations. I had to increase the app size of the compiled applet to 500k
- for the script to run on about 150 OSAX.
-
- Also not that there are 2 OSAX I found: ScriptToTextCoercion and StringToPSN
- that do not contain an aete that the EightyLister OSAX can read.
-
- Missing stuff: ability to read in replies and properties out of the OSAX
- return structures. Lawrence? Anyone?
-
-
-
- This AppleScript will export all the events implemented by all currently
- installed scripting additions, creating a report as a regular text document.
-
- Requires:
- EightyLister OSAX
- File Commands OSAX
- New File OSAX
- Read/Write OSAX
-
- Note that the Scripting Commands OSAX conflicts with EightyLister OSAX. There
- is a conflict in the property event ID. Scripting Commands uses event ID
- while EightyLister user event id. Take Scripting Commands OSAX out of the
- scripting additions folder if you have it before compiling this script.
-
- Original written August 13 1994 by Lawrence DUOliveiro, Waikato University,
- Hamilton, New Zealand.
- Modified by Alex Sirota October 20 1994: use read/write osax to output to
- file, cleanup output, error checking
-
-
- try
- set destpath to (new file with prompt "Dictionary file name:" default
- name "my AS dict")
- -- choose output file
- set destfileref to (open for access destpath with write permission)
- -- open output file and save ref #
- set eof destfileref to 0
- -- set output file's length to 0 to make sure no previous contents are kept
- set numscriptingadd to 0
- -- variable to keep track of number of OSAXen processed
-
- set AdditionsFolder to (scripting additions folder) as text
- -- get path to scripting additions folder
- set TheResult to {}
- -- TheResult is a list of all scripting additions and their events
-
- repeat with ThisFile in (list folder file AdditionsFolder)
- -- with every file in scripting additions folder
- set ThisFile to contents of ThisFile
- set ThisFileInfo to info for file (AdditionsFolder & ThisFile)
- -- file info for file
- if not folder of ThisFileInfo then
- -- if it is an osax type then append it into our list with event info
- if file type of ThisFileInfo = "osax" then
- set TheResult to TheResult & {{TheAddition:ThisF
- ile, TheEvents:(list
- events file (AdditionsFolder & ThisFile))}}
- -- note that we label each item in the list with
- TheAddition
- --and TheEvents for access later
- end if
- end if
- end repeat
-
-
- repeat with ThisItem in TheResult -- with every item in the list
-
- set numscriptingadd to numscriptingadd + 1
- -- add 1 to scripting addition counter
- set ThisAddition to TheAddition of ThisItem
- -- now use the labels in the list and extract them
- set TheseEvents to TheEvents of ThisItem
- write (ThisAddition & return) to destfileref as string
- -- write out name to file
- repeat with ThisEvent in TheseEvents
- -- with each event (command) get its class, id, name and description
- set eventclass to (event class of ThisEvent)
- set eventid to (event ID of ThisEvent)
- set eventname to (event name of ThisEvent)
- set eventdesc to (event description of ThisEvent)
- set eventinfo to "Class: " & eventclass & return & B
- "ID: " & eventid & return & "Syntax: " & eventna
- me & return &
- "Description: " & eventdesc -- label the strings
-
- write (eventinfo & return & return) to destfileref as st
- ring
- -- write out to file
-
- end repeat
- write ("---" & return & return) to destfileref as string -- writ
- e out
- delimiter text for prettyness
- end repeat
- close access destfileref
- -- we're done, so close access to dictionary output file
- beep 3
- display dialog ("Number of Scripting Additions described: " &
- numscriptingadd as string) buttons {"OK"} B
- default button "OK" -- display what we did
-
- on error errText number errNum
- if errNum = -128 then
- display dialog "Cancelled." buttons {"Exit"} default button "Exi
- t"
- else
- close access destfileref -- finally close output file when done
- -- otherwise a bad error occured (out of memory?)
- -- but close output file first!
- display dialog "Error: " & errText & return & "Number: " & errNu
- m as string
- buttons {"Blast!"} B
- default button "Blast!" with icon caution
- end if
- end try
-
-
- `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
- `,Alex Sirota,`,`,`,`,`,`,`Genius is an African that dreams of snow.`
- `,adapple@apple.com`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`-Vladimir Nabokov,`
- `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
- `,http://atlantis.austin.apple.com/people.pages/adapple/adapple.html`
- `,`,`,`,`,`,`,`Apple Web Server: http://www.info.apple.com`,`,`,`,`,`
- `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
- =========================================================================
- Date: Thu, 3 Nov 1994 16:21:17 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Case, David" <case_david@JPMORGAN.COM>
- Subject: Re: Recordable Applications
-
- >Can anyone tell me how to find out what apps are recordable, not merely
- >scriptable? The only recordable apps I know of now are:
- > System 7.5 Finder
- > Scriptable Text Editor
- > PhotoFlash
-
- >As a beginner, I find it much easier to work with recordable apps -- I can
- >basically make my own example scripts.
-
- >Has anyone been working with other recordable applications? Which ones? TIA!
-
- Apple publishes the "AppleScript Guide to Scriptable Applications" which lists
- the capabilities of all apps that support AppleScript. It's part number is
- L0592LL/A.
-
- Dave Case
- JPMorgan
- =========================================================================
- Date: Thu, 3 Nov 1994 12:43:16 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bill Bedford <billb@MOUSA.DEMON.CO.UK>
- Subject: Graphic Scripting
-
- Can anyone tell me if there are scripting systems that will allow
- manipulation of graphic elements?
-
- I'm working mainly in Freehand 3.1 and produce drawings that resemble
- sheets of postage stamps, except that each 'stamp' may be either a
- different drawing or size. I find that it can take longer to arrange these
- elements on to the sheet than it takes to draw them. So I am looking for a
- system that will take the drudgery out of this chore.
-
- AFAIK none of the major graphics programs are scriptable, so AS can only
- be used to a limited extent.
-
- ------------------------------------------------------------------------
- Bill Bedford Designer of Photo-Etches
- billb@mousa.demon.co.uk
- +44 9505 327
-
- Living on a island gives the world a different perspective
- ------------------------------------------------------------------------
- =========================================================================
- Date: Thu, 3 Nov 1994 14:06:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Recordable Applications
-
- At 12:38 PM 11/3/94, SRList wrote:
- >Can anyone tell me how to find out what apps are recordable, not merely
- >scriptable?
- >
- There is no way to know other than to try...
-
-
- The only recordable apps I know of now are:
- > System 7.5 Finder
- > Scriptable Text Editor
- > PhotoFlash
- >
- Let's not forget StuffIt Deluxe and StuffIt Lite - the FIRST
- recordable applications (over a year BEFORE Apple released AppleScript) and
- SITcomm our communications program.
-
-
- >As a beginner, I find it much easier to work with recordable apps -- I can
- >basically make my own example scripts.
- >
- We agree, and that's why (almost) all Aladdin products are recordable.
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Engineering AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Thu, 3 Nov 1994 14:09:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Recordable Applications
-
- >Can anyone tell me how to find out what apps are recordable, not merely
- >scriptable? The only recordable apps I know of now are:
-
- Excel 5.0
- Word 6.0 (but it spits out DoScripts with Basic commands)
- Stuffit Deluxe/Lite
- InTouch 3.0
- Cirrus 2.0
- InfoDepot 2.0
- JPEG View 3.0 (freeware!)
- Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
- JMP 3.0
- PowerAgent
- Userland Frontier 2.1 (or later)
- WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
-
- With the AppleScript Scripters kit they provided a guide to Scriptable
- Applications (most of these are in there).
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Thu, 3 Nov 1994 14:09:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: List of Lists
-
- >How does one create a list of lists from an existing series of lists?
- >
- >I've can generate a series of lists based on rearranging a series of
- >repeating fields from FileMaker Pro.
- >
- >However, for what I'm trying to do, I think I need to generate a list of
- >lists.
- >
- >How do I do such a thing?
- >
- >I've tried such things as...
- >
- > set totalList to totalList & newListElement
- >
- >But all I get is a never ending list.
- >
- >Help...
- >
- >Thanks,
- >
- >Chuck
-
- For a fixed number use the "list constructor"
-
- set a to {1,2,3}
- set b to {1,2,3}
- set c to {1,2,3}
-
- set listolists to {a,b,c}
-
- and listolists is a list of lists.
-
- This hack is useful for returning multiple results in the results box on
- your script editor.
-
- For an indefinite number make a null list and in a loop add items at the end.
-
- set listolists to {}
-
- repeat n times
- set end of listolists to GetNextItem()
- end
-
- Check out the AppleScript Language Guide for the beef.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Thu, 3 Nov 1994 14:14:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ben Robbins <dennis@ESKIMO.COM>
- Subject: Re: Graphic Scripting & aete library
- In-Reply-To: <199411032126.AA05407@isumataq.eskimo.com>
-
- On Thu, 3 Nov 1994, Bill Bedford wrote:
-
- > AFAIK none of the major graphics programs are scriptable, so AS can only
- > be used to a limited extent.
-
- Canvas 3.5 appears to be very scriptable.
-
- Which brings me to another thought. Would it be useful to have a
- location where aete's from apps (commercial and otherwise) could be
- posted? An aete library where one could browse to see if there is an app
- around with the scripting support one is looking for? (okay, I admit it
- - I think it would be great)
-
- Saving the aete resource to a seperate file with ResEdit is a simple
- matter, and it saves disk space anyway for apps you don't want to keep
- installed.
-
- Maybe beloved gaea would be willing to provide a directory?
-
-
- Ben Robbins
- ActiveMac Consulting voice: (206) 364-8601
- Seattle, WA fax: (206) 364-6191
- dennis@eskimo.com
- =========================================================================
- Date: Thu, 3 Nov 1994 16:25:35 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Graphic Scripting & aete library
- In-Reply-To: Your message of "Thu, 03 Nov 94 14:14:45 PST"
-
- Ben Robbins suggests....
-
- >Which brings me to another thought. Would it be useful to have a
- >location where aete's from apps (commercial and otherwise) could be
- >posted? An aete library where one could browse to see if there is an app
- >around with the scripting support one is looking for? (okay, I admit it
- >- I think it would be great)
- >
- >Saving the aete resource to a seperate file with ResEdit is a simple
- >matter, and it saves disk space anyway for apps you don't want to keep
- >installed.
- >
- >Maybe beloved gaea would be willing to provide a directory?
-
- I've thought about (and even started) a list of the commands in different
- apps. Wouldn't that be a little better than the resource itself? Would we be
- violating any copyrights by posting aete's? I'd be willing to provide a place
- for it on gaea.
-
- pf
- =========================================================================
- Date: Thu, 3 Nov 1994 15:47:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Launching an app in the background
-
- I am running a script that launches StuffIt Expander. It has the potential of
- doing the launching while AfterDark is active. The problem I'm having is that
- launching an application while AfterDark is active is causing the application
- to not fully launch until AfterDark goes away (I move the mouse or press a
- key). I can force AfterDark to go away by sending it a keypress using AutoType
- but we would like to keep AfterDark active throughout the entire process.
-
- I have worked around this problem in cron by launching applications into the
- background. This has worked fine so far. I also need to be able to do this
- from a script and I haven't seen a way to do it yet.
-
- This is a real irritating problem with AD 3.0. It seems that an application
- cannot become the active application while AD is active. I was monitoring the
- computer using some remote scripts and I see a process called "Visual Client."
- It isn't an application but an AD document and Finder seems to have problems
- dealing with it. Has anyone else run into this problem?
-
- Any help would be appreciated.
-
- Greg
- =========================================================================
- Date: Thu, 3 Nov 1994 19:20:02 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: Recordable Applications
-
- >Can anyone tell me how to find out what apps are recordable
-
- Kudo Image Browser from Imspace is also recordable.
-
- Doesn't the AS FAQ have a list of recordable aps?
-
- Peter
- =========================================================================
- Date: Fri, 4 Nov 1994 12:52:43 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: Finding every occurence of a delimiter
- In-Reply-To: <199411012046.HAA07980@ariel.ucs.unimelb.EDU.AU> from "Kevin
- Purcell" at Nov 1, 94 08:31:10 am
-
- >
- > > A portion of a script I am writing contains a nested repeat loop which I
- > >would like to get ride to enhance speed performance. The loop contains a
- > >check for every occurence of a tab to see if the file contains data or not.
- >
- > Some general comments on slow scripts:
- >
- > You don't say which app you are using but if you can use filter references
- > ("whoose" tests) with these objects then you may find a considerable speed
- > up.
- >
- > It follows the rule of thumb: do the most using application commands; do
- > the least you can in AppleScript (especially parsing) because it is slow;
- > use the fewest number of AppleEvents to performore your task.
- >
- > The other alternative is to use an application to do the parsing for you.
- > You might find MacPerl to be a good choice here.
- >
- > Choose the correct app.
- >
- > Work in big chunks.
- >
- > Don't use AppleScript for parsing.
- >
- The XCMD osax is ideal for this kind of thing, using its 'textual find' and
- 'textual replace' commands, which are quite speedy. The following script
- shows how you can process a text file without using an application. It uses
- only AppleScript and XCMD osax. I can't remember if the file I/O uses
- commands from AppleScript or ScriptTools.
-
- I will upload this script to gaea. It should help answer a few questions
- about text processing with AS, and avoid using the STE a bit...
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
-
- ------------------------
- -- NB: You will have to adjust the spacing and line-continuation
- characters to use this in a script. Get it off gaea if you want to save
- time.
-
- (*Example of text processing with AppleScript and the XCMD osax
- This code and functionality is in the public domain. Please tell me if you find
- it useful
- or have any comments.
- Jeremy Howard, jhoward@ariel.unimelb.edu.au
-
- This program uses a contacts database in flat text format. Record delimiters are
- Return.
- Field delimeters are Tab. Records may have double quotes around them. Each
- record contains three fields:
- 1 - Full name and company (or any other primary classification)
- 2 - A number of addresses, separated by ';'
- 3 - As many phone numbers or additional fields as required, with a ';' in
- between.
-
- Sample record:
- "Jeremy Howard, Howard Consulting", ";2/43 Barkly St., Carlton, 3053, Vic,
- AUST", ";;jhoward@ariel.unimelb.edu.au"
- Semi-colons at beginning of field are due to exporting application-doesn't
- effect execution.*)
-
- try
- close access myfile
- on error
- end try
- set reDo to false
- set copyWrite to "Instant Info, )J.P.Howard, 1994" & return & return
- set myLookup to text returned of (display dialog copyWrite & "Who you lookin'
- for?" default answer "")
- try
- read myfile from 1 to 2 --make sure it's not already open
- on error
- set myfile to open for access alias "MegaDrive:Utilities:Now Contact*:Co
- ntact
- Text"
- end try
- set myList to read myfile from 1
- set myList to Textual Replace "\"" in myList by "" --in case there are quotes
- around each field
- try
- set foundList to Textual Find myList for myLookup with All occurance wit
- hout
- exact match --list of substring positions
- on error --error returned if textual find returns nothing
- display dialog "No-one by that name: try again?" buttons {"Yes", "Nope"}
- default button "Yes"
- if button returned of the result is "Yes" then
- run
- return --avoid recursion
- else
- close access myfile
- return
- end if
- end try
- repeat with j from 1 to (count of items of foundList) --repeat with each found
- substring
- set myFound to item j of foundList --get position of this substring
- set gotIt to false --haven't found beginning of record yet
- set i to 0
- repeat until gotIt
- set i to i + 1
- if (character ((item 1 of myFound) - i)) of myList is return the
- n --keep going
- back until beginning of record
- set gotIt to true
- set firstChar to (item 1 of myFound) - i --store index o
- f first char
- end if --BUG - this breaks if BOF is reached
- end repeat
- set lastChar to (item 1 of item 1 of (Textual Find myList for return sta
- rting
- offset (item 1 of myFound) without exact match))
- --find end of record by finding first carriage return after substring
- set theListing to (characters from firstChar to lastChar of myList) as s
- tring
- --get the record
- set myName to TextToList theListing delimiter tab --make it into a list
- set item 2 of myName to TextToList (item 2 of myName) delimiter ";" --cr
- eate
- sublist of addresses
- set item 3 of myName to TextToList (item 3 of myName) delimiter ";" --cr
- eate
- sublist of phoneNums
- set phoneNums to ""
- set theAddress to ""
- repeat with i from 1 to (count of items in item 3 of myName)
- set phoneNums to phoneNums & item i of item 3 of myName & return
- --create
- string with phoneNums
- end repeat
- repeat with i from 1 to (count of items in item 2 of myName)
- set theAddress to theAddress & item i of item 2 of myName & retu
- rn --create
- string with addresses
- end repeat
- if theAddress - "" then set theAddress to "Address" & return & "--------
- " &
- return & theAddress
- if phoneNums contains ":" then set phoneNums to "Telephone" & return &
- "----------" & return & phoneNums
- --add headers where relevent
- if (count of items of foundList) - j = 0 then
- set keepOn to display dialog item 1 of myName & return & return
- & theAddress &
- return & phoneNums buttons {"Done"} default button "Done"
- --display result, no more found items so don't give 'next' optio
- n
- else
- set keepOn to display dialog item 1 of myName & return & return
- & theAddress &
- return & phoneNums buttons {"Done", "Next"} default button "Next"
- --display result, more items can be displayed
- end if
- if button returned of keepOn is "Done" then exit repeat
- end repeat
- close access myfile
- =========================================================================
- Date: Fri, 4 Nov 1994 15:14:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Canvas 3.5 (was Re: Graphic Scripting & aete library
-
- Ben Robbins <dennis@ESKIMO.COM> writes:
-
- >Canvas 3.5 appears to be very scriptable.
-
- Is it much improved over 3.0.x? I asked the distributor about scriptability
- when 3.5 came out, but they didn't seem to think there was much improvement
- in that area.
-
- 3.0.x is pretty terrible. You can create objects and do some things to
- selected objects, but there isn't any way to find out what you can select.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 3 Nov 1994 21:16:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: CDMiller@AOL.COM
- Subject: Re: Graphic Scripting
-
- Bill Bedford writes:
-
- >Can anyone tell me if there are scripting systems that will allow
- >manipulation of graphic elements?
- >
- >I'm working mainly in Freehand 3.1 and produce drawings that resemble
- >sheets of postage stamps, except that each 'stamp' may be either a
- >different drawing or size. I find that it can take longer to arrange these
- >elements on to the sheet than it takes to draw them. So I am looking for a
- >system that will take the drudgery out of this chore.
- >
- >AFAIK none of the major graphics programs are scriptable, so AS can only
- >be used to a limited extent.
-
- Two major desktop publishing programs are scriptable. QuarkXpress is
- AppleScriptable and PageMaker has its own scripting language and a very
- limited AppleScript capability.
-
- I'd suggest exporting your artwork from FreeHand as an EPS file and writing a
- script in PageMaker to import, place and size them properly. PageMaker's
- scripting language easy to learn.
- =========================================================================
- Date: Fri, 4 Nov 1994 15:11:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Graphic Scripting
-
- Bill Bedford <billb@MOUSA.DEMON.CO.UK> writes:
-
- >Can anyone tell me if there are scripting systems that will allow
- >manipulation of graphic elements?
-
- There are, if you're prepared to take more of a "toolkit" approach.
-
- Among my many sets of externals for HyperCard, I have one for doing
- QuickDraw graphics calls. I also have another for working with QuickDraw GX,
- but that's not quite as complete as yet.
-
- The idea behind these externals is that you can write your own code for
- generating and manipulating graphics. The nice thing about HyperTalk is that
- you can try things out immediately--you can even type individual system calls
- into the message box, and see the results at once.
-
- I'm not sure how to go about distributing these. I'm currently negotiating
- licensing with one or two individual users.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 3 Nov 1994 23:53:00 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Writing to a text file
-
- >I have FM databases that call over a dozen different events at the click of
- >a button. I use it to export data, to sort information, to pass data to
- >another database, verify information in a record before the user closes it
- >etc.
-
- I think you misunderstood what I was saying or, more likely, I didn't
- communicate it very well. I'm basically using the same hack, except that
- I'm running scripts in a folder via an applet. Filemaker can't just tell a
- script to run, it has to use an intermediary applet. In other words, it's
- not attachable. We're basically doing the same thing, though.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Thu, 3 Nov 1994 23:22:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: several Eudora questions:
-
- Is there a way to 'explode' nicknames in the To field via AS, so that a:
- get field "To" ... will return the email address of the nickname. I
- remember seeing something like alias expander/exploder that did this but I
- don't think it was a script.
-
- ---------------------
- Is there a way to do this:
-
- tell app "eudora"
- make new mailbox with name "test" at mail folder ""
- end tell
-
- This doesn't work, but is there a way?
-
- ---------------------
- How do you move one message from one mailbox to another? I've tried:
-
- move message 1 of mailbox "in" of mail folder "" to -|
- mailbox "trash" of mail folder ""
-
- and a couple other variation with out any luck, including using the same
- location reference produced from
-
- get location of mailbox "Trash" of mail folder "" --which is just an alias
-
- ---------------------
-
-
- I've got some good Eudora scripts to share and if I can get answers to
- these questions they will be much more polished! ;-)
-
- -Preston
-
-
- --
- Preston Holmes Neurobiology Unit
- Dept. of Neuroscience, UCSD Scripps Institution of Oceanography
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Thu, 3 Nov 1994 23:34:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Graphic Scripting
-
- CDMiller@AOL.COM wrote:
- >Two major desktop publishing programs are scriptable. QuarkXpress is
- >AppleScriptable and PageMaker has its own scripting language and a very
- >limited AppleScript capability.
-
- I think the scriptability of PageMaker is actually very complete and solid.
- It's not AppleScript, but it is well thought out and very functional. You
- can access it via DoScript, which makes it ugly, but you can do some nice
- stuff.
-
- Jon
- =========================================================================
- Date: Fri, 4 Nov 1994 16:39:56 +0900
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Jonathan H. Roberts" <koyoeng@PO.IIJNET.OR.JP>
- Subject: Bill_Bedford_Freehand_Scripting
-
- >From: Bill Bedford <billb@MOUSA.DEMON.CO.UK>
- >Subject: Graphic Scripting
-
- >Can anyone tell me if there are scripting systems that will allow
- >manipulation of graphic elements?
-
- I have managed to create QuicKeys scripts under FreeHand 3.0 -
- I had a few problems getting them to run smoothly - I think the
- trick is to make sure that you put in the correct wait commands
- for every operation. I was using Norton Utilities - Directory
- Assistance to allow me to work on batches of images in different
- folders. This proved to be a little buggy, but I'm not surprised.
-
- I guess if it works with QuicKeys it should work for other scripting
- utilities - I frankly can't justify the time to invest in learning another
- language.
-
- Good Luck,
- Jonathan
- =========================================================================
- Date: Thu, 3 Nov 1994 23:46:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: List of Lists
-
- >How does one create a list of lists from an existing series of lists?
- >
- >I've can generate a series of lists based on rearranging a series of
- >repeating fields from FileMaker Pro.
- >
- >However, for what I'm trying to do, I think I need to generate a list of
- >lists.
- >
- >How do I do such a thing?
- >
- >I've tried such things as...
- >
- > set totalList to totalList & newListElement
- >
- >But all I get is a never ending list.
-
- Ah, the [sometimes unwanted] power of the & operator with lists.
-
- Left to its own devices AppleScript behaves as you say...
-
- {1, 2} & 3
-
- results in
- {1, 2, 3}
-
- So does
-
- {1, 2} & {3}
-
- But...
- {1, 2} & {{3}}
-
- produces
- {1, 2, {3}}
-
- -------------
- Apple Event Manager (and, somewhat therefore, AppleScript) axioms:
-
- 1. An object is equivalent to a list of one item: that object
-
- 2. A list of one item is equivalent to that item
- -----------
- An example of Axiom 2 is
-
- {3} + 2
-
- which returns 5
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 3 Nov 1994 23:46:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Recordable Applications
-
- >>Can anyone tell me how to find out what apps are recordable, not merely
- >>scriptable? The only recordable apps I know of now are:
- >> System 7.5 Finder
- >> Scriptable Text Editor
- >> PhotoFlash
- >
- >>As a beginner, I find it much easier to work with recordable apps -- I can
- >>basically make my own example scripts.
- >
- >>Has anyone been working with other recordable applications? Which ones? TIA!
- >
- >Apple publishes the "AppleScript Guide to Scriptable Applications" which lists
- >the capabilities of all apps that support AppleScript. It's part number is
- >L0592LL/A.
-
- Well, yes, but, as a published document, it is an always-obsolete snapshot
- in time. [Most apps shown don't lose capabilities, although they may lose
- bugs scriptors have learned to work around.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 3 Nov 1994 23:46:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Recordable Applications
-
- >Can anyone tell me how to find out what apps are recordable, not merely
- >scriptable? The only recordable apps I know of now are:
- > System 7.5 Finder
- > Scriptable Text Editor
- > PhotoFlash
- >
- >As a beginner, I find it much easier to work with recordable apps -- I can
- >basically make my own example scripts.
- >
- >Has anyone been working with other recordable applications? Which ones? TIA!
-
- StuffIt Deluxe and SITcomm from Aladdin (StuffIt Deluxe 3.5 is a
- worth-while upgrade, BTW).
-
- InfoDepot.
-
- The easy way is to turn on recording in a script editor and do a few things
- in the application which "obviously should be scriptable".
-
- MicroSoft Excel 5.0 (just followed my own advice, and tried it, getting):
-
- tell application "Microsoft Excel"
- activate
- set FormulaR1C1 of ActiveCell to "5"
- Select Range "R2C1"
- set FormulaR1C1 of ActiveCell to "7"
- Select Range "R3C1"
- set FormulaR1C1 of ActiveCell to "=R[-2]C+R[-1]C"
- Select Range "R4C1"
- set IsVisible of Toolbar 6 to true
- set IsVisible of Toolbar 6 to false
- end tell
-
-
- Toolbar 6 is the Tip Wizard thing. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 3 Nov 1994 23:46:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Graphic Scripting
-
- >Can anyone tell me if there are scripting systems that will allow
- >manipulation of graphic elements?
- >
- >I'm working mainly in Freehand 3.1 and produce drawings that resemble
- >sheets of postage stamps, except that each 'stamp' may be either a
- >different drawing or size. I find that it can take longer to arrange these
- >elements on to the sheet than it takes to draw them. So I am looking for a
- >system that will take the drudgery out of this chore.
- >
- > AFAIK none of the major graphics programs are scriptable, so AS can only
- >be used to a limited extent.
-
- Canvas is scriptable (and has been for a long time...starting before
- AppleScript came out, so it could be scripted using Frontier). Because it
- was early, there seem to be holes in the scripting support.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 3 Nov 1994 23:46:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Graphic Scripting & aete library
-
- >On Thu, 3 Nov 1994, Bill Bedford wrote:
- >
- >> AFAIK none of the major graphics programs are scriptable, so AS can only
- >> be used to a limited extent.
- >
- >Canvas 3.5 appears to be very scriptable.
- >
- >Which brings me to another thought. Would it be useful to have a
- >location where aete's from apps (commercial and otherwise) could be
- >posted? An aete library where one could browse to see if there is an app
- >around with the scripting support one is looking for? (okay, I admit it
- >- I think it would be great)
- >
- >Saving the aete resource to a seperate file with ResEdit is a simple
- >matter, and it saves disk space anyway for apps you don't want to keep
- >installed.
- >
- >Maybe beloved gaea would be willing to provide a directory?
-
- You would need Copyright clearance for each and every 'aete' resource in
- the collection, from the copyright owner. The only exception would be true
- "Public Domain" apps (not "freeware", but true Public Domain).
-
- Not worth the trouble. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 4 Nov 1994 06:59:40 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
- Subject: Re: Recordable Applications
-
- >Can anyone tell me how to find out what apps are recordable, not merely
- >scriptable? The only recordable apps I know of now are:
- > System 7.5 Finder
- > Scriptable Text Editor
- > PhotoFlash
- >
- >As a beginner, I find it much easier to work with recordable apps -- I can
- >basically make my own example scripts.
-
- MacHTTP is recordable, but not very exciting to record. I'm not sure why
- more of Apple's own software isn't scriptable and recordable. It's tedious
- to do, but not particularly difficult.
-
- -----------------------------------------------------------------------
- Chuck Shotton
- cshotton@oac.hsc.uth.tmc.edu "I am NOT here."
- =========================================================================
- Date: Fri, 4 Nov 1994 09:00:08 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: William Rose <billr@JAGUAR.NCSL.NIST.GOV>
- Organization: National Institute of Standards and Technology formerly National
- Bureau of Standards
- Subject: Newbie Question
-
- Hello:
-
- Having recently begun working with Apple Script and subscribing to this
- group, I find myself with some questions. First, what is the ftp site
- for gaes (sp)? Secondly, I have "The Tao of Applescript", so are there
- any recommendations of books to get that would be better or supplement
- this?
-
- Thanks...
-
-
- --
- William Rose, Ph.D. |Email: billr@jaguar.ncsl.nist.gov
- Advanced Systems Divison |Phone: 301/975-4451
- National Institute |FAX: 301/670-0939
- of Standards and Technology |
- Room A216 Building 225 (Technology) |
- Gaithersburg, MD 20899 |
- =========================================================================
- Date: Fri, 4 Nov 1994 09:09:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
- Subject: AEResolve
-
- I'm attempting to take a non-scriptable app I sell, which runs about
- 100K lines of C code, and make it scriptable. I'm struggling
- to understand AEResolve and how it works.
-
- I have IM and I bought the AppleScript SDK and Events Registry from
- APDA. But I can't find a coherent description of how AEResolve and
- the object model work together with NewOSLAccessorProc and my
- accessor functions.
-
- I am either missing a piece of documentation, or I'm not looking
- at the right place in what I've got, or I'm not understanding what
- I'm reading. Suggestions as to which it might be?
- =========================================================================
- Date: Fri, 4 Nov 1994 10:07:48 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: Re: List of Lists
-
- >>>>> "Charles" == Automatic digest processor <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
- writes:
-
- Charles> Date: Thu, 3 Nov 1994 08:03:27 -0500 From: Charles Bruce
- Charles> Pelto <CPelto@AOL.COM> Subject: List of Lists
-
- Charles> How does one create a list of lists from an existing
- Charles> series of lists?
-
- Charles> I've can generate a series of lists based on rearranging
- Charles> a series of repeating fields from FileMaker Pro.
-
- Charles> However, for what I'm trying to do, I think I need to
- Charles> generate a list of lists.
-
- Charles> How do I do such a thing?
-
- Charles> I've tried such things as...
-
- Charles> set totalList to totalList & newListElement
-
- Charles> But all I get is a never ending list.
-
- Charles> Help...
-
- Charles> Thanks,
-
- Charles> Chuck
-
- Try:
-
- set totalList to {totalList} & {newListElement}
-
- the curly braces do the trick.
-
- Jason
- =========================================================================
- Date: Fri, 4 Nov 1994 09:56:14 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Newbie Question
- In-Reply-To: Your message of "Fri, 04 Nov 94 09:00:08 EST"
-
- William,
-
- >Having recently begun working with Apple Script and subscribing to this
- >group, I find myself with some questions. First, what is the ftp site
- >for gaes (sp)? Secondly, I have "The Tao of Applescript", so are there
- >any recommendations of books to get that would be better or supplement
- >this?
-
- Others may respond on the list, but I wanted to give you a quick response.
-
- The address is gaea.kgs.ukans.edu and you'll find scripts, addons, osaxen, and
- other goodies in the applescript directory. If you are using Anarchie, one of
- the bookmarks is already set up for it. If you have any problems, let me
- know--I'm the maintainer.
-
- In addition to the Tao, Danny Goodman also has a book. And there are also the
- Apple manuals that come with the Scripter's and Developer's kits. You'll find
- more information about them in the FAQ which is in
-
- ftp://gaea.kgs.ukans.edu/applescript/00applescript.faq
-
- If you pick up a copy today, you may want to check again after the weekend.
- I'll be updating it.
-
- Hope this helps.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Fri, 4 Nov 1994 11:02:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "David Habermann, DTRL, 517 636-8632" <habermann@DOW.COM>
- Subject: Scripting MacHTTP
-
- Fellow scripters:
-
- I am trying to write a script to, when requested, activate TR-WWW (a searching
- application), bring it to the foreground (speed improvement), set the MacHTTP
- Pig_Delay to a low value and then perform a search using TR-WWW. After TR-WWW
- finishes, the results should be sent back to my script for forwarding to
- MacHTTP and then to the client. OK? The script is below:
-
- on run
-
- set path_args to ""
- set post_args to
- "__Find=test&__DOCUMENTSET=SPE_Demo&__ResultsMod=relevance&__MaxHits=40&__Search
- Mode=OR&__NearValue=40"
-
- try
-
- set crlf to (ASCII character 13) & (ASCII character 10)
-
- tell application "tr-www.cgi"
- activate
- Search Doc path_args for post_args
- return result
- end tell
-
- on error errText number errNum
-
- return "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP" & crlf & ,
- "MIME-Version: 1.0" & crlf & ,
- "Content-type: text/html" & crlf & crlf &,
- "ERROR: " & errNum & " " & errText
-
- end try
-
- end run
-
- When submitting a form to the above script, TR-WWW activates, loads the set of
- files requested, searches them, and then my script returns the following error
- message back to the client:
-
- ERROR: 1 tr-www.cgi got an error: An error of type 1 has occurred.
-
- Thanks again for any help you can give me.
-
- Dave Habermann
- Dow Chemical Company
- =========================================================================
- Date: Fri, 4 Nov 1994 10:13:36 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Newbie Question
-
- First, what is the ftp site
- >for gaes (sp)? ftp site:
- gaea.kgs.ukans.edu/applescript
-
- ==============================================================
- Jaeson M. Engle (aka
- Colaks Kyraden GodKing)
- xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
- xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
- jme@josaiah.sewanee.edu Elomense(MUD): josaiah.sewanee.edu 1999
- ==============================================================
- =========================================================================
- Date: Fri, 4 Nov 1994 08:34:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Graphic Scripting
-
- >CDMiller@AOL.COM wrote:
- >>Two major desktop publishing programs are scriptable. QuarkXpress is
- >>AppleScriptable and PageMaker has its own scripting language and a very
- >>limited AppleScript capability.
- >
- >I think the scriptability of PageMaker is actually very complete and solid.
- >It's not AppleScript, but it is well thought out and very functional. You
- >can access it via DoScript, which makes it ugly, but you can do some nice
- >stuff.
-
- There's also a well done Frontier glue table, which allows scripting
- PageMaker from Frontier, with the PageMaker scripting documentation as the
- primary reference. It's on gaea, somewhere in /frontier. This was a
- collaboration done across time and nation (one of the conspirators <er,
- collaborators> is Canadian).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 4 Nov 1994 10:59:30 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bill Maguire <billm@CS.UREGINA.CA>
- Subject: Re: Recordable Applications
- In-Reply-To: <199411041300.HAA05030@MERCURY.CS.UREGINA.CA> from "Chuck
- Shotton" at Nov 4, 94 06:59:40 am
-
- > >Can anyone tell me how to find out what apps are recordable, not
- > >scriptable? The only recordable apps I know of now are:
- > > System 7.5 Finder
- > > Scriptable Text Editor
- > > PhotoFlash
- > >
- > >As a beginner, I find it much easier to work with recordable apps -- I can
- > >basically make my own example scripts.
- >
- Does anyone know if ClarisWorks 3.0 will be recordable? According to the
- Claris person I talked to, he said it was scriptable but didn't know if
- it was also recordable. By the way, does anyone know if ClarisWorks 3.0
- supports the drag-and-drop in System 7.5?
-
- Thanks
-
- Bill
-
- -----------------------------------------------------------------------------
- Bill Maguire Internet:
- Bell-Northern Research stud1d42@bnr.ca
- Ottawa, Ontario billm@cs.uregina.ca
- Canada Mac.Canuck@eworld.com
- -----------------------------------------------------------------------------
- =========================================================================
- Date: Fri, 4 Nov 1994 08:59:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: List of Lists
-
- >>>>>> "Charles" == Automatic digest processor <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
- > writes:
- >
- > Charles> Date: Thu, 3 Nov 1994 08:03:27 -0500 From: Charles Bruce
- > Charles> Pelto <CPelto@AOL.COM> Subject: List of Lists
- >
- > Charles> How does one create a list of lists from an existing
- > Charles> series of lists?
- >
- > Charles> I've can generate a series of lists based on rearranging
- > Charles> a series of repeating fields from FileMaker Pro.
- >
- > Charles> However, for what I'm trying to do, I think I need to
- > Charles> generate a list of lists.
- >
- > Charles> How do I do such a thing?
- >
- > Charles> I've tried such things as...
- >
- > Charles> set totalList to totalList & newListElement
- >
- > Charles> But all I get is a never ending list.
- >
- > Charles> Help...
- >
- > Charles> Thanks,
- >
- > Charles> Chuck
- >
- >Try:
- >
- >set totalList to {totalList} & {newListElement}
- >
- >the curly braces do the trick.
- >
- >Jason
-
- As I said:
-
- set totalList to {totalList, newListElement}
-
- is the simplest way to do it.
-
- Even AppleScript can be elegant every once in a while.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 4 Nov 1994 09:29:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: AEResolve
-
- >I'm attempting to take a non-scriptable app I sell, which runs about
- >100K lines of C code, and make it scriptable. I'm struggling
- >to understand AEResolve and how it works.
- >
- Get yourself a copy of the Develop article by Richard Clark!!
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Engineering AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 4 Nov 1994 09:28:57 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Graphic Scripting & aete library
-
- >You would need Copyright clearance for each and every 'aete' resource in
- >the collection, from the copyright owner. The only exception would be true
- >"Public Domain" apps (not "freeware", but true Public Domain).
- >
- Yeah, the legalities are kinda interesting on this one. The format
- of an 'aete', since it is public isn't copyrightable. The standard suite
- names, etc. can't be since they are "standard", but one could argue that
- the "private" stuff and the combination could be.
-
- However, I think that software copy of the dictionary might be OK...
-
-
- Personally, you can put up StuffIt's 'aete' or dictionary (please
- use the new 3.5 one if you are going to do it - it's SO MUCH NICER!).
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Engineering AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 4 Nov 1994 09:38:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Recordable Applications
-
- >Does anyone know if ClarisWorks 3.0 will be recordable? According to the
- >Claris person I talked to, he said it was scriptable but didn't know if
- >it was also recordable. By the way, does anyone know if ClarisWorks 3.0
- >supports the drag-and-drop in System 7.5?
-
- ClarisWorks 3.0 is not scriptable and thus not recordable.
- =========================================================================
- Date: Fri, 4 Nov 1994 09:43:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AEResolve
-
- >I'm attempting to take a non-scriptable app I sell, which runs about
- >100K lines of C code, and make it scriptable. I'm struggling
- >to understand AEResolve and how it works.
- >
- >I have IM and I bought the AppleScript SDK and Events Registry from
- >APDA. But I can't find a coherent description of how AEResolve and
- >the object model work together with NewOSLAccessorProc and my
- >accessor functions.
- >
- >I am either missing a piece of documentation, or I'm not looking
- >at the right place in what I've got, or I'm not understanding what
- >I'm reading. Suggestions as to which it might be?
-
-
- Apple Developer University has a self-taught course on CD which covers
- this...the version I have was early: I understand the current version is
- significantly improved.
-
- Also, an article in "develop" magazine:
-
- Issue 10 (May 1992): "Apple Event Objects and You" by Richard Clark.
-
- Also of interest (but not directly applicable to your app, since it deal
- with an object-oriented approach)
-
- Issue 12 (Dec 1992): "Better Apple Event Coding Through Objects" by Eric
- Berdahl.
-
- -----------
- If it makes sense for your app, please make it attachable, too. And
- tinkerable, if that makes sense. The former lets your users do things like
- fire a script (any OSA language) when they make a change to a cell in a
- spreadsheet (cf, InfoDepot)...the latter lets your user use a script to
- change the behavior of a menu item: New might be customized by running a
- script which sets up conditions the user always wants.
-
- Both are really pretty easy...in fact if you are starting from scratch (not
- your situation here), you can fire scripts to do much of the work your
- app's UI triggers, even right out of the box.
-
- For some of this stuff:
- develop Issue 18 (Jun 1994) "Programming for Flexibility: The Open
- Scripting Architecture" by Paul G. Smith
-
- -----------
- There have also been articles in MacTech, but I don't have references handy.
-
- For $30 per year, you should--IMHO--have "develop" as part of your basic
- programming equipment. 4 issues, each with a CD...each CD contains all
- back issues (fixed, in many cases), and the example code from all the
- issues (fixed, in many cases). And a bunch of other useful stuff. For
- example, because they ran QuickDraw GX articles early on, the "develop" CD
- was a source of the QD GX development stuff at a time when it wasn't on the
- developer CD series, but only on seeds to Associates and Partners.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 4 Nov 1994 12:47:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Shilling.Jeff" <shilling@NIEHS.NIH.GOV>
- Subject: Unmounting Volumes
-
- Using the MountVol OASX I was able to write my first AppleScript. My script
- mounts a bunch of volumes necessary to run a database.
-
- I would like to be able to dismount the volumes after the user is finished with
- them. Is there an OSAX to do this? Or any other way that does not involve the
- scriptable Finder? I say without the scriptable Finder because we have a large
- installed base that will be using this script.
-
- All suggestions will be helpful.
-
- Thanks,
-
- Jeff
- =========================================================================
- Date: Fri, 4 Nov 1994 09:00:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: AEResolve
-
- >I'm attempting to take a non-scriptable app I sell, which runs about
- >100K lines of C code, and make it scriptable. I'm struggling
- >to understand AEResolve and how it works.
- >
- >I have IM and I bought the AppleScript SDK and Events Registry from
- >APDA. But I can't find a coherent description of how AEResolve and
- >the object model work together with NewOSLAccessorProc and my
- >accessor functions.
- >
- >I am either missing a piece of documentation, or I'm not looking
- >at the right place in what I've got, or I'm not understanding what
- >I'm reading. Suggestions as to which it might be?
-
- If you haven't read the following Develop articles you should:
-
- Apple Event Objects and You (issue 10) and
-
- Better AppleEvent coding through Objects (issue 12)
-
- You can subscribe to Develop via APDA (800) 272-2732 for $30 a year
- domestic, $50 a year international. Quartlerly with a CD. Each CD contains
- all the back issues and all the sample code. A good deal.
-
- You can also find all the Develop back copies and code on a Developer's CD
- (probably the documentation issue)
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 4 Nov 1994 10:07:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: several Eudora questions:
-
- >How do you move one message from one mailbox to another? I've tried:
- >
- >move message 1 of mailbox "in" of mail folder "" to -|
- > mailbox "trash" of mail folder ""
- >
- move message 8 of mailbox "In" of mail folder "" to =AC
- end of mailbox "Scripting" of mail folder ""
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Fri, 4 Nov 1994 12:21:26 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: Newbie Question
-
- >Hello:
- >
- >Having recently begun working with Apple Script and subscribing to this
- >group, I find myself with some questions. First, what is the ftp site
- >for gaes (sp)?
-
- ftp://gaea.kgs.ukans.edu/applescript/
-
-
- Secondly, I have "The Tao of Applescript", so are there
- >any recommendations of books to get that would be better or supplement
- >this?
- >
-
- Also The Complete Applescript HandBook.
-
-
-
- Best-
-
- Greg
- =========================================================================
- Date: Fri, 4 Nov 1994 14:43:00 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Recordable Applications
-
- >Well, yes, but, as a published document, it is an always-obsolete snapshot
- >in time. [Most apps shown don't lose capabilities, although they may lose
- >bugs scriptors have learned to work around.]
-
- Or possibly a vision of future time. My copy of "AppleScript Guide to
- Scriptable Applications" included MicroSoft Word 6.0 in January even though
- the app has only been shipping a month or two. Several other apps aren't
- yet shipping or haven't added some of the features in the guide. Others may
- be have been sold or killed. And many news apps aren't included.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ultimate@mail.icon.net
- =========================================================================
- Date: Fri, 4 Nov 1994 14:43:00 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Newbie Question
-
- >Having recently begun working with Apple Script and subscribing to this
- >group, I find myself with some questions. First, what is the ftp site
- >for gaes (sp)? Secondly, I have "The Tao of Applescript", so are there
- >any recommendations of books to get that would be better or supplement
- >this?
-
- ftp://gaea.kgs.ukans.edu/
-
- I've been very pleased with "The Complete AppleScript Handbook" by Danny
- Goodman, who frequents this area. A second edition is due in January.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ultimate@mail.icon.net
- =========================================================================
- Date: Fri, 4 Nov 1994 10:49:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Graphic Scripting
- In-Reply-To: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ"'s message of Fri,
- 4 Nov 1994 15:11:00 +1300 <9411040312.AA26715@quilty.Stanford.EDU>
-
- Greetings,
-
- [HyperTalk] you can even type individual system calls into the message
- box, and see the results at once.
-
- Wow! Really, I think you have an awesome potential there. I love the speed of
- compiled code, but I sure miss an interpreter for working out things. I must
- admit, I miss Lisp.
-
- Can you tell more about what is/isn't supported in your implementation?
-
- Thanks!
-
- Michael
-
- P.S. Your post brightened my morning.
- =========================================================================
- Date: Fri, 4 Nov 1994 11:07:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Edmund Lai <lai@APPLE.COM>
- Subject: Re: AEResolve
-
- >I'm attempting to take a non-scriptable app I sell, which runs about
- >100K lines of C code, and make it scriptable. I'm struggling
- >to understand AEResolve and how it works.
- >
- >I have IM and I bought the AppleScript SDK and Events Registry from
- >APDA. But I can't find a coherent description of how AEResolve and
- >the object model work together with NewOSLAccessorProc and my
- >accessor functions.
- >
- >I am either missing a piece of documentation, or I'm not looking
- >at the right place in what I've got, or I'm not understanding what
- >I'm reading. Suggestions as to which it might be?
-
- If you have the AppleScript SDK, you should have access to a sample
- program called CoreSample in the Sample code folder. That may be
- a godd place to start.
-
-
- /* Disclaimer: All statments and opinions expressed are my own */
- /* Edmund K. Lai */
- /* Apple Computer, MS303-3A */
- /* 20525 Mariani Ave, */
- /* Cupertino, CA 95014 */
- /* (408)974-6272 */
- zW@h9cOi
- =========================================================================
- Date: Fri, 4 Nov 1994 11:44:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Newbie Question
-
- >>Hello:
- >>
- >>Having recently begun working with Apple Script and subscribing to this
- >>group, I find myself with some questions. First, what is the ftp site
- >>for gaes (sp)?
- >
- >ftp://gaea.kgs.ukans.edu/applescript/
- >
- >
- > Secondly, I have "The Tao of Applescript", so are there
- >>any recommendations of books to get that would be better or supplement
- >>this?
- >>
- >
- >Also The Complete Applescript HandBook.
-
- Get the AppleScript Language Guide and the AppleScript Scripting Additions
- Guide (both in the AppleScript Scripter's Kit) published by Addison Wesley.
-
- These are much better references than either Handbook (sorry Danny!) or the
- Tao, especially if you need the real answer.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 4 Nov 1994 14:53:18 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: Recordable Applications
-
- >ClarisWorks 3.0 is not scriptable and thus not recordable.
-
- Well, this is very strange. I opened the ClarisWorks 2.0(something) in
- the Script Editor and tried to script it which resulted in some
- system freezes or application quits. I figured a future version would
- have improved scripting capabilities. I also figured the above answer
- was wrong. So I tried to open the ClarisWorks dictionary (this time
- version 2.1v4; no 3.0 yet) and discovered the dictionary was no longer
- there.
-
- Very interesting...
-
- Peter
- =========================================================================
- Date: Fri, 4 Nov 1994 19:15:24 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Re: Graphic Scripting & aete library
-
- In Regards to your letter <199411032228.AA04803@exnet.com>:
- >
- > I've thought about (and even started) a list of the commands in different
- > apps. Wouldn't that be a little better than the resource itself? Would we be
- > violating any copyrights by posting aete's? I'd be willing to provide a place
- > for it on gaea.
- >
-
- Copyright issues apart posting the aete's would be a lot more use:
- that would allows us developers to try & make sure we don't
- accidentally trample on other developers' usage of apple event ids,
- class ids, property ids, and so on. Currently there's no way at all to
- check this out reliably.
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Fri, 4 Nov 1994 14:17:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Recordable Applications
-
- >>Can anyone tell me how to find out what apps are recordable, not merely
- >>scriptable? The only recordable apps I know of now are:
- >
- >Excel 5.0
- >Word 6.0 (but it spits out DoScripts with Basic commands)
- >Stuffit Deluxe/Lite
- >InTouch 3.0
- >Cirrus 2.0
- >InfoDepot 2.0
- >JPEG View 3.0 (freeware!)
- >Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
- >JMP 3.0
- >PowerAgent
- >Userland Frontier 2.1 (or later)
- >WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
- >
- >With the AppleScript Scripters kit they provided a guide to Scriptable
- >Applications (most of these are in there).
- >
-
- Actually, they got the bit about Frontier wrong: Frontier can _record_
- recordable applications. It's not recordable itself.
-
- Also, PixelPaint Pro 3.0 is recordable, I believe.
-
- Doug
- =========================================================================
- Date: Fri, 4 Nov 1994 17:24:48 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: read/write commands
-
- I'm sitting here looking at dictionaries for a variety of additions for
- working with text files, and wondering if anybody has any experiences that
- would lead them to prefer one over another.
-
- Specifically, I'm wondering if I should replace the commands from Apple's
- read/write addition with the simpler ones from Peter Lewis' Text Files
- Suite if I don't need the complexity of the read/write commands. It would
- save a lot of code involved in opening and closing the files and error
- checking to make sure they get closed if something goes wrong along the
- way etc. But, is it safer to take care of all that stuff myself? Will it
- really speed things up to use the simpler commands, or are they taking
- more time to open and close each file each time they're called? Any other
- thoughts on the matter?
-
- I appreciate cc's of brilliant perceptions, since I get the digest and
- therefore there's some delay involved.
-
- thanks,
- Barry
- =========================================================================
- Date: Fri, 4 Nov 1994 16:36:05 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Dennis J. Hagner" <HAGNEDJ@LUB002.LAMAR.EDU>
- Subject: Re: AEResolve
-
- To Dana Cartwright,
- You spoke of trying to find out how to use AEResolve.
- Aren't we all. I found that when I have problems
- figuring out how to use something, I look at the code
- from the Think Class Library (I'm using Symantec C++
- 7.0) and see how they did it. Once I see it in action,
- it makes it alot easier to write it myself!
-
- Dennis J. Hagner
- Programmer/Operator
- Lamar University
- Beaumont, Texas
- e-mail: HAGNEDJ@LUB002.LAMAR.EDU
- =========================================================================
- Date: Fri, 4 Nov 1994 15:43:33 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: Finding every occurence of a delimiter
-
- > A portion of a script I am writing contains a nested repeat loop which I
- >would like to get ride to enhance speed performance. The loop contains a
- >check for every occurence of a tab to see if the file contains data or not.
-
- You might try using Wayne Walrath's excellent "Tokenize" and "Join List"
- OSAXen (available on gaea as "ACME Script Widgets") -- first, tokenize the
- string with {tab} as the delimiter, and then Join List on the result with
- {} as the delimiter list. If the resultant string is empty (or equal to the
- special word that begins each of your original strings), you know it's
- empty.
-
- If your original has returns because it has multiple lines, you can
- tokenize with tab and return as your delmiters.
-
- Matthew
-
- ----------------------------------------------------------
- "Believe nothing, no matter where you read it, or who said
- it -- even if I have said it -- unless it agrees with your
- own reason and your common sense." --The Buddha
- ----------------------------------------------------------
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
- =========================================================================
- Date: Thu, 3 Nov 1994 15:19:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Travel, Mike" <Travel#m#_Mike@MSGATE.APPLE.COM>
- Subject: Accessing scripting additions on remote machines
-
- Does anyone know why this isn't possible or if it is, how to do it.
-
- this doesn't work --
- tell app "Finder" of machine "myMac" of zone "myZone"
- display dialog "testing"
- end tell
-
- I get the message "Finder got an error. No user interaction allowed."
-
- Linking and sharing are both on.
-
- Whats strange is that you can use the OSAX 'beep' and it works just fine.
-
- Thanks for any advice
- Peace,
- Mike
- =========================================================================
- Date: Fri, 4 Nov 1994 21:26:42 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: List of Lists
-
- >set totalList to {totalList} & {newListElement}
-
- For appending a list to a list, I use the following:
-
- Set List1 to (1,2,3}
-
- Set List2 to {4,5,6}
-
- Set Combinelist to List1 & every item of List2
-
- => (1,2,3,{4,5,6}}
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ultimate@mail.icon.net
- =========================================================================
- Date: Fri, 4 Nov 1994 23:36:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Accessing scripting additions on remote machines
-
- Travel, Mike <Travel#m#_Mike@MSGATE.APPLE.COM> wrote:
- >
- >Does anyone know why this isn't possible or if it is, how to do it.
- >
- >this doesn't work --
- >tell app "Finder" of machine "myMac" of zone "myZone"
- > display dialog "testing"
- >end tell
- >
- >I get the message "Finder got an error. No user interaction allowed."
- >
- >Linking and sharing are both on.
- >
- >Whats strange is that you can use the OSAX 'beep' and it works just fine.
-
- The default user action level is "interact with local". This means that
- interaction is allowed if the event is sent from the same machine, but not
- if sent from another machine. This means that it doesn't allow you to put
- up dialogs on other people's machines.
-
- The application receiving the event can change its own interaction level,
- ideally to "interact with remote". PhotoFlash allows you to change an
- interaction level property, although we normally turn it down so that we
- don't get dialogs which stop the script. You could also turn it up so that
- remote scripts can put up dialogs. Quark has this property this too.
-
- The way around this is to do this:
-
- tell app "Finder" of machine "myMac" of zone "myZone"
- run script "display dialog \"testing\""
- end tell
-
- This way the event is sent from the local machine and it works.
-
- This "user interaction level" property is a must have for all scriptable
- applications. Hmm, it could be an osax. Another one for the queue. ;)
-
- Jon
- =========================================================================
- Date: Sat, 5 Nov 1994 00:20:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Accessing scripting additions on remote machines
-
- >Does anyone know why this isn't possible or if it is, how to do it.
- >
- >this doesn't work --
- >tell app "Finder" of machine "myMac" of zone "myZone"
- > display dialog "testing"
- >end tell
- >
- >I get the message "Finder got an error. No user interaction allowed."
- >
- >Linking and sharing are both on.
- >
- >Whats strange is that you can use the OSAX 'beep' and it works just fine.
-
- I believe AppleScript sends events to remote machines with the user
- interaction flag in the event set to kAENeverInteract (events to the local
- machine are sent with the flag set to kAECanInteract). Makes sense in the
- general case, where the machine being sent to may have a poor unsuspecting
- user sitting there working.
-
- I also believe it is not possible to control this flag in AppleScript
- [Frontier allows setting either kAEAlwaysInteract or kAENeverInteract in
- outgoing messages].
-
- Whether an incoming event causes user interaction is controlled both by the
- sender and the receiving application...the sender sets up one of three
- values
- kAENeverInteract
- kAECanInteract
- kAEAlwaysInteract
-
- [The difference between "Can" and "Always" is pretty "soft"...Can might
- cause interaction for alerts and dialogs which the server needs to pose to
- get information, whereas Always would do that plus interacting to put up
- progress displays and such. Never implies either return an error (as you
- saw, there's a special error code) or using default values. Different apps
- do things differently.]
-
-
- A receiving app which wishes to interact may make a call to
- AESetInteractionAllowed, to set up one of three states:
-
- kAEInteractWithSelf
- kAEInteractWithLocal (the default, in effect before AESetInteractionAllowed)
- kAEInteractWithAll
-
- Before doing any user interaction, the server app makes yet another call:
- AEInteractWithUser ().
-
- The AE Manager now looks at the flag in the event, and the application's
- state, and where the event came from (a send-to-self, a local app, a remote
- app), and decides whether interaction is valid. If not, an error is
- returned. If interaction is valid, the AE Manager may bring the server to
- the front directly (there's another flag in the event which influences
- this) if it is not, or it may use the Notificaton Manager to do so. Either
- way, once the server app is in front, the AEInteractWithUser call returns
- with a no error status, at which point the app is free to interact (and
- knows it is in front).
-
- I'm glad this wasn't made complex. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sat, 5 Nov 1994 20:56:38 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: Recordable Applications
- In-Reply-To: <199411040928.UAA15055@ariel.ucs.unimelb.EDU.AU> from "John W.
- Baxter" at Nov 3, 94 11:46:08 pm
-
- >
- > >Can anyone tell me how to find out what apps are recordable, not merely
- > >scriptable? The only recordable apps I know of now are:
- > > System 7.5 Finder
- > > Scriptable Text Editor
- > > PhotoFlash
- > >
- > >As a beginner, I find it much easier to work with recordable apps -- I can
- > >basically make my own example scripts.
- > >
- > >Has anyone been working with other recordable applications? Which ones? TIA!
- >
- > StuffIt Deluxe and SITcomm from Aladdin (StuffIt Deluxe 3.5 is a
- > worth-while upgrade, BTW).
- >
- > InfoDepot.
- > [...]
- What's InfoDepot? I understand it's attachable--in what way? What's the
- pricing/availability?
-
- Thanks for any info,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Sat, 5 Nov 1994 05:19:46 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Another "wait" question
-
- After following the previous posts about using idle handlers and such, I
- decided to automate the reboot of my MUD server when the rest of my server
- reboots. Here's the script:
-
- global whatsNext
- on run
- launch application "MacMud 3.2()"
- set whatsNext to "setup"
- end run
-
- on idle
- if whatsNext is "setup" then
- set whatsNext to "Done"
- return (60 / 6)
- else
- tell application "MacMud 3.2()"
- "Startup MacMud"
- end tell
- end if
- end idle
-
- The problem here is that the result is always "setup", and so thus, the
- script quits then, not continuing through to do the tell. Any help would be
- *greatly* appreciated!
-
- TIA,
-
- ==============================================================
- Jaeson M. Engle (aka: Colaks
- Kyraden GodKing)
- xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
- xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
- jme@josaiah.sewanee.edu Elomense(MUD): josaiah.sewanee.edu 1999
- ==============================================================
- =========================================================================
- Date: Fri, 4 Nov 1994 12:09:33 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Thomas G. Ostertag" <tostertag@TCM.MN.ORG>
- Subject: Re(2): MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
-
- Why did I get this?
- _________________________________________________________________
- At 24/10/94, Automatic digest processor wrote:
- >
- >At 07:23 10/23/94, Jeremy Quinn wrote:
- >>I want to write a script that will "get" the selected URL in a Eudora
- >>window via a Web clients "Open URL" event.
- >
- >--------------------
- >Regarding Frontier [...]
- >
- > Eudora.eventInfo.selectedText = 'eStx'
- >
- >Then, this statement will obtain the current selected text from Eudora:
- > core.get (Eudora.id, Eudora.eventInfo.selectedText)
- >
- >You could add a "plain" get event to your Eudora glue table if you want to
- >(assuming Frontier 3.0.x):
- >
- >on get (obj, as = nil)
- > core.get (Eudora.id, obj, as)
- >
- >Then you could just write
- >with Eudora
- > get (selectedText)
- >
- >I hope this helps. [To discover the value 'eStx', I had the Commercial
- >Developer's Suite which ships with Frontier build a new glue table
- >(different name), and looked up the value of selectedText.]
-
-
- Thank you for an exellent reply! Yes it works!
- I learnt so many new things about Frontier from this one message!
-
- I would like to make this script available on gaea. Another thing I never
- worked out with Frontier is how to make an installer, that includes scripts
- from different locations in my DB. There are components of this script
- scattered around my Frontier/Runtime root in:-
-
- system.verbs.apps.Eudora (2 additions to glue table)
- system.verbs.apps.Eudora.eventinfo (1 addition)
- system.verbs.apps.Mozilla (NetScape's glue table)
- system.menubars.CSOm (1 menu)
-
- Thanks again for your help
-
- Jeremy
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- =========================================================================
- Date: Sat, 5 Nov 1994 13:14:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: HTTP scripts URL
-
- Just poking around the Web, I ran across this page of AppleScript/MacHTTP
- script information, for those of you who might be wondering what use AS is
- for MacHTTP.
-
- URL: http://edb518ea.edb.utexas.edu/scripts/cgix/cgix.html
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- Web: http://access.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Sat, 5 Nov 1994 12:23:30 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: HTTP scripts URL
-
- >Just poking around the Web, I ran across this page of AppleScript/MacHTTP
- >script information, for those of you who might be wondering what use AS is
- >for MacHTTP.
- >
- >URL: http://edb518ea.edb.utexas.edu/scripts/cgix/cgix.html
- >
- >spud.
- >
- >
- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >a.h.s. boy ---------------------- manifesto overlord, dada typographics
- >--------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- >spud@access.digex.net ----------- Web: http://access.digex.net/~spud
- >
- >
- >mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
-
- I tried to check this out just now, but at first couldn't access the URL,
- thengot unknown errors, after truncating the url a bit, to a higher
- directory. Anyone else have trouble with this one?
-
- ==============================================================
- Jaeson M. Engle (aka: Colaks
- Kyraden GodKing)
- xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
- xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
- jme@josaiah.sewanee.edu Elomense(MUD): josaiah.sewanee.edu 1999
- ==============================================================
- =========================================================================
- Date: Sat, 5 Nov 1994 14:59:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Collard <BWCOLLARD@AOL.COM>
- Subject: Scriptable FTP with Firewall
-
- Does anyone have any suggestions for a scriptable ftp client through
- firewall. Currently we are using Anarchie internally by it cannot go through
- the Firewall even though VersaTerm FTP Client can ftp through Firewall.
- Unfortunately VersaTerm FTP Client or VersaTerm Link does not support
- scripting for FTP sessions, and their people have indicated that this will
- never be supported since they implemented via comm toolbox. Also I have
- tried the Mango software but have been unable to get it to work throught
- Firewall. Also Software Ventures is soon to release new product Snatcher
- that should address this but they have not even started beta. Currently here
- are the possible solutions I have found.
- 1.) Snatcher, but not tested and not released.
- 2.) VersaTerm FTP Client with Quickeys but this gets interupted by user
- mouse clicks.
- 3.) Anarchie, Peter Lewis has indicated he will be releasing a new version
- shortly although I am not sure if this will deal with Firewall problem.
- 4.) Mango, ?.
- 5.) Eudora ?? no experience.
- 6.) Apple's Developer kit for MacTCP, sounds like a lot of work.
- 7.) VersaTerm FTP Client driven by MPW.
-
- If anyone has comments or suggestions it would be appreciated. The Firewall
- is a Sparc1 supporting standard UNIX commands such as ls, get, put.
-
- Thanks
- Brian Collard
- =========================================================================
- Date: Sat, 5 Nov 1994 12:27:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Scriptable FTP with Firewall
-
- >Does anyone have any suggestions for a scriptable ftp client through
- >firewall. Currently we are using Anarchie internally by it cannot go through
-
- ....snip
-
- >If anyone has comments or suggestions it would be appreciated. The Firewall
- >is a Sparc1 supporting standard UNIX commands such as ls, get, put.
-
- One way to handle firewalls for Macintosh users is to provide access
- through the firewall via an IP Gateway. Apple has a product called the
- Apple IP Gateway that can be used to safely span a firewall.
-
- You install the Apple IP Gateway on a Mac with an ethernet card. Configure
- it for dynamic address assignments only. Have the IP Gateway AppleTalk port
- and IP port be on the same ethernet card. Configure the firewall to allow
- IP packets to and from the physical address of the ethernet card in the IP
- Gateway (not it's many IP addresses).
-
- Users configure MacTCP to use the IP gateway. When they launch an IP
- process, MacTCP makes a connection to the gateway, assigns an available IP
- address and the user communicates to the outside world.
-
- >From the outside, the firewall only allows access to the IP Gateway and the
- IP gateway prevents access to the internal network. The IP gateway does not
- prevent external access to Macs connected to the gateway who have also
- installed IP server software but the number of folks who would setup a
- server on a machine that gets randomly assigned addresses is very slim.
- Even if users install server software, since their address changes each
- time they restart their mac, they can be difficult to locate from the
- outside. It's pretty secure.
-
- Because the IP Gateway is inside the firewall, it allows users to connect
- to both internal and external IP services without making any special
- arrangements. One advantage of the Apple IP Gateway is that you can use
- multiple macs as IP Gateways on the same AppleTalk zone if the 253 users
- per gateway isn't enough OR if you need a lower number of users per IP
- Gateway for performance reasons.
-
- I appologize that this is not a scripting question and answer but since the
- question was asked in this mailing list, and there are probably folks in a
- similar situation, I figured I should reply to the list.
-
- Kee Nethery
- =========================================================================
- Date: Sat, 5 Nov 1994 18:32:23 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
- Subject: Best way to script "Shared" finder info flag?
-
- Howdy,
-
- Could anyone tell me the best way to set a file's "Shared" finder flag (like
- in a "Get File/Folder Info..." ResEdit window) via AppleScript? Does an OSAX
- exist for this?
-
- Many thanks,
- bobo
- --
- Eric Bowman
- bobo@reed.edu
- Biology Department
- Reed College
- =========================================================================
- Date: Sat, 5 Nov 1994 20:12:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Scriptable FTP with Firewall
-
- At 7:59 PM 11/5/94, Brian Collard wrote:
- >Does anyone have any suggestions for a scriptable ftp client through
- >firewall. Currently here are the possible solutions I have found.
- >1.) Snatcher, but not tested and not released.
- >
- Can't comment other than to say that it is VERY scriptable - assume
- that it ships ;).
-
-
- >2.) VersaTerm FTP Client with Quickeys but this gets interupted by user
- >mouse clicks.
- >
- You actually CAN script this using a scriptable comm program (like
- SITcomm) as there are "CTB commands" supported by the tool to allow you to
- do most things. There is also a direct programmer's API to the tool...
-
-
- >3.) Anarchie, Peter Lewis has indicated he will be releasing a new version
- >shortly although I am not sure if this will deal with Firewall problem.
- >
- The current version (1.4.x) of Anarchie supports most firewalls.
- Have you tried that version?
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Sun, 6 Nov 1994 10:30:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Harrison <harrison@APPLE.COM>
- Subject: Re: Scripting MacHTTP
-
- >Fellow scripters:
- >
- >I am trying to write a script to, when requested, activate TR-WWW (a searching
- >application), bring it to the foreground (speed improvement), set the MacHTTP
- >Pig_Delay to a low value and then perform a search using TR-WWW. After TR-WWW
- >finishes, the results should be sent back to my script for forwarding to
- >MacHTTP and then to the client.
-
- >When submitting a form to the above script, TR-WWW activates, loads the set of
- >files requested, searches them, and then my script returns the following error
- >message back to the client:
- >
- >ERROR: 1 tr-www.cgi got an error: An error of type 1 has occurred.
- >
-
- Dave, sounds like memory.... try allocating more memory to the TR-WWW app
- ("get info" on the app, increasing the preferred memory size to as large a
- number as you can stand given your memory configuration and the other apps
- running, etc.)
- =========================================================================
- Date: Sun, 6 Nov 1994 17:30:47 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Eudora auto-reply
-
- Working on an auto-reply from Eudora & it has one bug: after completing the
- "connect with checking" and the filtering into mailbox "test" Eudora throws
- up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
- OK and the script completes its drill. Tried turning off the Mail Arrived
- alerts in Eudora but no joy. Anyone tell me what's up?
-
- (PS: I scounged most of this code from all the helpful folks on the list
- and it has saved wads of time. Thanks!)
- ----------begin script--------
- if not (PPPopened) then
- openPPP
- end if
- with timeout of 9999 seconds
- tell application "Eudora 2.1"
- connect with checking <---- problem after this action +
- filtering
- set ct to count of message in mailbox "test"
- if ct > 0 then
- repeat with n from 1 to ct
- if subject of message n in mailbox "test" contains
- "test" then
- set theReply to reply message n of mailbox
- "test" with quoting and self
- set signature of message 0 to alternate
- set field "subject" of message 0 to "In response
- to your request.."
- set theBod to body of theReply
- set body of theReply to "(Automatic response
- text goes here)
- Here's what you wrote:" & return & return & theBod
- queue message 0
- end if
- end repeat
- end if
- set q_stat to status of last message of mailbox "out"
- if q_stat is queued then
- connect with sending
- end if
- end tell
- end timeout
- activate
- activate
- activate
- closePPP
- ----------end script---------
- =========================================================================
- Date: Mon, 7 Nov 1994 10:07:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Launching an app in the background
-
- Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
-
- >I am running a script that launches StuffIt Expander. It has the potential of
- >doing the launching while AfterDark is active. The problem I'm having is that
- >launching an application while AfterDark is active is causing the application
- >to not fully launch until AfterDark goes away (I move the mouse or press a
- >key).
-
- When using After Dark, remember the Golden Rule: if it causes you trouble,
- get rid of it.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 7 Nov 1994 11:25:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Question: Applets and Multi-Threading
-
- [Sorry this message is 12 days late, on account of the screwup with the list
- address. I figure the information is still relevant, so I'm reposting it.]
-
- David Lewis <lewis@NETCOM.COM> points out:
-
- >>use a semaphor lock:
- >>
- >>on doWork()
- >> if not busy then
- > ***Danger, Will Robinson, Danger***
- >> set busy to true
- >> -- do the work
- >> set busy to false
- >> end if
- >
- >There is a subtle but important bug here. In a re-entrant environment,
- >another process could come in at the indicated point and you'd be in
- >trouble in a way that would hit rarely enough to truly drive you crazy.
- >What you need is a test-and-set operation which is guaranteed atomic.
-
- This might not be necessary. As I understand it, AppleScript's "multithreading"
- works like this: the script is always in a position to respond to new messages,
- even while it's handling an existing one. When the new message comes in, the
- currently-executing handler is suspended, and only resumed after the new
- message has been completely handled.
-
- Thus, there is no round-robin scheduling among currently-executing threads:
- they just go on a stack, and the topmost one is allowed to run to completion
- before resuming the previous one.
-
- If my understanding is correct, the above check should work just fine.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 7 Nov 1994 11:54:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Copyright (was Re: Graphic Scripting & aete library
-
- Leonard Rosenthol <leonardr@NETCOM.COM> writes:
-
- >>You would need Copyright clearance for each and every 'aete' resource in
- >>the collection, from the copyright owner.
- >
- > Yeah, the legalities are kinda interesting on this one. The format
- >of an 'aete', since it is public isn't copyrightable. The standard suite
- >names, etc. can't be since they are "standard", but one could argue that
- >the "private" stuff and the combination could be.
-
- However, bear in mind what happens when you open a dictionary in the
- Script Editor, or send a "get terminology" event to an application--you get
- back a copy of the aete. Is this a violation of copyright? AppleScript
- caches the aete's, so it doesn't have to keep retrieving them every time
- you recompile a script--is this a violation of copyright?
-
- Say you print the contents of a dictionary window in the Script Editor,
- and distribute copies (either on paper, or electronically as a QuickDraw GX
- Portable Digital Document) to people. Is that a violation of copyright?
-
- As I understood it, copyright applies to the expression of information, not
- to the information itself. Given a certain set of terminology information,
- the aete syntax doesn't give you many choices in how you express that
- information.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 7 Nov 1994 12:24:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AEResolve
-
- "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU> writes:
-
- >I'm attempting to take a non-scriptable app I sell, which runs about
- >100K lines of C code, and make it scriptable. I'm struggling
- >to understand AEResolve and how it works.
-
- Other people have mentioned the article in "develop" issue 10. That's a good
- introduction to the basic capabilities provided by the AppleEvent Manager
- and the Object Support Library. But in my view, if you're going to write
- a fully scriptable and recordable application that supports the AppleEvent
- Object Model, these capabilities are nowhere near enough: you will need to
- build a framework on top of them.
-
- I've been refining such a framework, using a couple of projects-in-progress
- as testbeds. The key was use of the "token", which the OSL allows to be
- anything you like. I define it as an AERecord, with a number of standard
- field types, not all of which have to be present in all tokens.
-
- A lot of these fields contain action routines, which are invoked via standard
- dispatchers. For example, my generic "get data" AppleEvent handler looks in
- the token for field containing a get-data action routine; if it doesn't find
- one, it next looks for a field containing the address to copy the data from;
- and finally it looks for another field containing the literal data itself.
- This gives you maximum flexibility in how you deal with different types of data.
-
- My tokens also contain object accessor routines for the different element and
- property types that the objects can contain. These are invoked via a single
- generic object accessor that is installed globally with typeWildCard for both
- its desiredClass and containerType. I find this gives me more flexibility than
- having to install all my actual object accessors directly at the global level,
- as the OSL normally requires.
-
- This all sounds very object-oriented, but it isn't, really: it's a lot more
- dynamic, and there's no implicit inheritance chain. Also, it allows me to
- deal with the problem Jon Pugh and I argued over some weeks back, where if you
- perform a lengthy operation on a bunch of objects, some programs give you a
- quick succession of progress dialogs, instead of a single one for the whole
- operation. By the way, this is all written in Modula-2.
-
- So far it's been working quite well. Adding new properties, new elements
- and new event types to my application has been a relatively painless process.
- I'm currently trying to think of a good, general way of dealing with comparison
- routines, which are needed for "where" and "whose" clauses. No doubt this will
- mean adding a new class of action routines to my token AERecords...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 7 Nov 1994 14:14:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Graphic Scripting
-
- Mike Shaff <shaff@QUILTY.STANFORD.EDU> asks:
-
- > [HyperTalk] you can even type individual system calls into the message
- > box, and see the results at once.
- >
- >Wow! Really, I think you have an awesome potential there. I love the speed of
- >compiled code, but I sure miss an interpreter for working out things. I must
- >admit, I miss Lisp.
-
- LISP probably has much more innate power for interfacing to system things in
- this way, but it also carries more overhead. Also it isn't as widespread,
- which limits the opportunities for other people to take things that I create
- and modify them.
-
- >Can you tell more about what is/isn't supported in your implementation?
-
- Let's see, QuickDraw functions: about 195 of these. They correspond pretty
- much to direct QuickDraw calls: thus, I have ones for doing PaintRect,
- FillCRect, EraseRgn etc. I also add some extra utility functions, like
- DrawPictureFromFile, which takes the name of a PICT file, and draws it
- directly into the specified port and destination rectangle. One neat feature
- of HyperCard 2.1/2.2 is that a window ID is actually the decimal integer
- address of the WindowRecord/GrafPort structure. Thus, my QuickDraw externals
- can draw into any of HyperCard's windows.
-
- I also have a couple of other sets for doing calls to the QuickTime Movie
- Toolbox and Image Compression Manager. You can create movies, do low-level
- editing, extract data from movies, fiddle playback rates etc.
-
- QuickDraw GX functions: I think I've done about 140 of these so far. You
- can create path shapes, polygon shapes and basic text shapes. You can do all
- the matrix manipulations (I even have a utility routine to create perspective
- mappings). There's full support of on-screen and offscreen viewports.
- QuickDraw GX is a much bigger API than old QuickDraw. Also, I'm a little
- more RSI-conscious (and rather less compulsive) than I was last year...
-
- Of course, it's all very well drawing into HyperCard's windows, but what you
- draw is liable to disappear when HyperCard next does an update. To fix this,
- I put together a simple hack I call Update Monitor. Basically this patches
- a couple of traps, and sends "Update" messages to your HyperTalk scripts,
- telling you that a card window needs updating. It's sort of a poor person's
- ColorizeHC/Color Tools, without the RAM overhead of large preallocated
- offscreen buffers, and hopefully with a bit more flexibility. On the down
- side, it doesn't look as slick--I can't update while the user is holding the
- command and option keys down, for example, though I do update as soon as they
- let go.
-
- That should be enough self-advertising :-). As you can see, there's quite a
- lot of work gone into these externals, and I'm looking for ways to get some
- money back for them, which is why I haven't just published them on the net.
- If you have a use for them, or a suggestion for distribution, talk to me.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Sun, 6 Nov 1994 21:34:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
- Subject: Scriptable Finder questions
-
- I believe Finder 7.1.3 is "the Scriptable Finder." However, when I was
- using it with AppleScript 1.1, it wasn't recordable and wouldn't accept a
- script that used the "delete selection" command. Also, if I open Finder
- 7.1.3's dictionary, it lists the Finder 7.0 dictionary. The same thing
- happens with Finder 7.1.4, from System 7.5. If I install the Scriptable
- Finder Extension (which appears to contain the Scriptable Finder
- dictionary), recording and the delete selection scripts work fine.
-
- I was under the impression that "the Scriptable Finder" was scriptable all
- by itself, without any other extensions. Is that not the case?
-
- On a different note, I've got the Scripting Menu v. 1.0B1. It seems like a
- very useful extension. Is there a newer, "official" release available
- anywhere?
-
-
- John
-
- ______________________________________________________________________________
- John Dunning jdunning@phoenix.princeton.edu
- =========================================================================
- Date: Mon, 7 Nov 1994 11:53:01 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Best way to script "Shared" finder info flag?
-
- > Could anyone tell me the best way to set a file's "Shared" finder flag
- (like
- > in a "Get File/Folder Info..." ResEdit window) via AppleScript? Does an
- OSAX
- > exist for this?
-
- This isn't always a good idea to do. If an application modifies resources in
- its resource fork, then it's not a good candidate for being a shareable app.
- You'll be taking chances if you change this.
-
- I'm not sure if an OSAX exists for setting finder flags or not.
-
- -wayne
- =========================================================================
- Date: Mon, 7 Nov 1994 08:56:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
- Subject: Script Help
-
- I want to be able to read in records from a text file and write them
- out again...The first character of each line is often a LineFeed
- (from a DOS text file) i want to test it (this works) and delete it
- if it is a linefeed...but when i put "characters 2 through (length of
- namefield) of namefield" into a variable it ends up with spaces
- between each of the characters...
-
- I tried to delete character 1 of the variable but apparently it
- doesn't know how to do that...
-
- Also is there a tighter way to do the loop of running through each
- record than what i've done with counting characters (pointer)?
-
- Thanks much, Andy
- -----------------------------------------------
- to ProcessFile(anObj)
- #copy (open for access anObj without write permission) to fid
- #copy (open for access (a reference to file (anObj & ".IC")) with
- write permission) to newfid
- #copy (get eof fid) to filelen
- #copy 0 to pointer
- #set savedtextitemdelimiters to AppleScript's text item delimiters
- #set AppleScript's text item delimiters to tab
- #repeat while pointer < filelen
- ##copy (read fid until return) to temp
- ##copy (length of temp) + pointer to pointer
- ##copy text item 1 of temp to namefield
- ##if (character 1 of namefield is "#") then
- ###copy (characters 2 through (length of namefield) of namefield) to
- namefield
- ##end if
- ##copy (text item 3 of temp & tab & namefield & tab & text item 8 of
- temp & "#" & text item 9 of temp & "#" & text item 11 of temp &
- "#" & text item 12 of temp & tab & text item 4 of temp & "#" &
- text item 5 of temp & ", " & text item 6 of temp & " " & text item 7
- of temp & "#" & text item 10 of temp & tab & tab & tab & tab & text
- item 2 of temp & tab & tab & tab & tab & tab & text item 13 of temp &
- return) to writestuff
- ##write writestuff to newfid
- #end repeat
- #close access fid
- #close access newfid
- #set AppleScript's text item delimiters to savedtextitemdelimiters
- end ProcessFile
- =========================================================================
- Date: Mon, 7 Nov 1994 08:56:48 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Fred.Terry." <pfterry@LKS.CSI.COM>
- Subject: Jon's Commands 1.2
- In-Reply-To: Your message of "Sat, 05 Nov 94 01:34:04 PST"
-
- Hi Everyone,
-
- Jon Pugh has released version 1.2 of his handy osaxen. He says....
-
- Jon's Commands is a collection of useful AppleScript Scripting Additions.
- This release adds 2 new commands, "set cursor to" and "AE user interaction
- level". Now you can set the cursor to indicate busy scripts, including
- animated cursors, and you can enable or disable user interaction in
- programs you are scripting.
-
-
- You'll find them in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/JonsCommands1.2.sit.hqx
-
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Mon, 7 Nov 1994 10:27:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Best Place to get info on FaceSpan
-
- Where is the best place to get FaceSpan questions answered? Are there a
- lot of FaceSpan users in this e-mail list?
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Mon, 7 Nov 1994 08:31:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Best Place to get info on FaceSpan
-
- >Where is the best place to get FaceSpan questions answered? Are there a
- >lot of FaceSpan users in this e-mail list?
- >
- >Mark Hadfield
- >hadfield@sickkids.on.ca
- >The Hospital For Sick Children
-
- Apple Devloper Tech support?
-
- Here is a good a place as any.
-
- Kevin "beta testing FaceSpan 1.0 every day" Purcell
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 7 Nov 1994 08:55:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Stuller <mstuller@ODA.STATE.OR.US>
- Subject: Waiting....
-
- I have a script that executes a FileMaker script. Then another FM script
- and then another. I needs however to _wait_ till the first one is done
- before trying to do the second, and third.
-
- Is there a wait command in AS?
-
- Thanks
-
- ___________________________________________________________
- Mark Stuller,Systems Analyst Oregon Dept of Agriculture
- mstuller@oda.state.or.us Voice: 503.986.4609
- http://www.oda.state.or.us FAX: 503.986.4746
- ___________________________________________________________
- =========================================================================
- Date: Mon, 7 Nov 1994 00:53:35 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
- Subject: Script Help
-
- I want to be able to read in records from a text file and write them
- out again...The first character of each line is often a LineFeed
- (from a DOS text file) i want to test it (this works) and delete it
- if it is a linefeed...but when i put "characters 2 through (length of
- namefield) of namefield" into a variable it ends up with spaces
- between each of the characters...
-
- Also is there a tighter way to do the loop than what i've done with
- counting characters?
-
- Thanks much, Andy
- -----------------------------------------------
- to ProcessFile(anObj)
- #copy (open for access anObj without write permission) to fid
- #copy (open for access (a reference to file (anObj & ".IC")) with
- write permission) to newfid
- #copy (get eof fid) to filelen
- #copy 0 to pointer
- #set savedtextitemdelimiters to AppleScript's text item delimiters
- #set AppleScript's text item delimiters to tab
- #repeat while pointer < filelen
- ##copy (read fid until return) to temp
- ##copy (length of temp) + pointer to pointer
- ##copy text item 1 of temp to namefield
- ##if (character 1 of namefield is "#") then
- ###copy (characters 2 through (length of namefield) of namefield) to
- namefield
- ##end if
- ##copy (text item 3 of temp & tab & namefield & tab & text item 8 of
- temp & "#" & text item 9 of temp & "#" & text item 11
- of temp & "#" & text item 12 of temp & tab & text item 4 of temp & "#"
- & text item 5 of temp & ", " & text item 6 of temp & " " & text item
- 7 of temp & "#" & text item 10 of temp & tab & tab & tab & tab &
- text item 2 of temp & tab & tab & tab & tab & tab & text
- item 13 of temp & return) to writestuff
- ##write writestuff to newfid
- #end repeat
- #close access fid
- #close access newfid
- #set AppleScript's text item delimiters to savedtextitemdelimiters
- end ProcessFile
- =========================================================================
- Date: Mon, 7 Nov 1994 14:35:16 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
- Subject: Hypercard Scripting Question
-
- Hi everyone--
-
- I'm attempting to script HyperCard 2.2, and I keep getting this minor, but
- debilitating problem. Here is the code I use to access the HyperCard
- appplication i'm using:
-
- activate application "HyperCard"
- tell application "HyperCard"
- set folderScript to "CreateFolder " & (myGroup as string)
- do script folderScript
- end tell
-
- What is supposed to happen here is that HyperCard will open, will access
- a stack called "X-Archive" with a function "CreateFolder" in it, and
- Create a folder whose name is stored in myGroup. The problem i'm having
- is that the script runs fine, and HyperCard is opened, but it is hidden,
- and does nothing. When I activate HyperCard manually, using the icon
- on the far right of the Finder's menubar, HyperCard asks me "Where is
- Home?", to which i answer "X-Archive", and _then_ the folder is created.
- My question, then, is, what commands do i need to use to ensure that
- the folder is created without the user _explicitly_ making Hypercard the
- active application, and designating Home. Also, this is not AppleScript
- related, but i am not all that familiar with the ins and outs of HyperCard,
- and so i was wondering, what is "Home", in the HyperCard context?
- Thanks in advance for all your help.
-
- eric brunick
-
-
- + "you're the prettiest of them all, but tell me something....what's wrong +
- + with you, what's wrong with everybody in this crazy place?!?!"--SP +
- + "even the most primative societies have an innate respect for the insane" +
- + sexonwheelz--ecb41215@uxa.cso.uiuc.edu || --RUMBLE FISH +
- =========================================================================
- Date: Mon, 7 Nov 1994 14:36:56 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Karl F. Bridges" <cfkfb@EIU.EDU>
- Subject: Scripting print ps in Quark
- In-Reply-To: <9411060238.AA02260@ux1.eiu.edu> from "Eric Bowman" at Nov 5,
- 94 06:32:23 pm
-
- Anyone know the correct syntax for applescripting a print to
- postscript function in quark. I know how to open the doc, do the repeat
- loop, ect. I'm just unclear on the syntax of the print command itself
- and whatver parameters if any need to be included. --
-
-
- *****************************************************************************
- Karl Bridges
- cfkfb@eiu.edu
- *****************************************************************************
- =========================================================================
- Date: Mon, 7 Nov 1994 14:39:10 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
- Subject: Re: Writing to a text file
-
- >
- > >Is there an osax which will allow me to read from and write to a text file?
- > >I know I can do this with the Scriptable Text Editor, but it seems a bit
- > >clunky.
- >
- > The read/write commands that are part of AppleScript 1.1 allow you to read
- > from and write to standard text files. In fact, I'm using one now to log my
- > PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
- > ships as part of System 7.5.
- >
- OK--what are these specific commands? I have AppleScript 1.1, but I can't
- find the right commands--I _think_ its "copy", from looking at "Language
- at a Glance" but i'm not sure. Thanks.
-
- eric
-
- + "you're the prettiest of them all, but tell me something....what's wrong +
- + with you, what's wrong with everybody in this crazy place?!?!"--SP +
- + "even the most primative societies have an innate respect for the insane" +
- + sexonwheelz--ecb41215@uxa.cso.uiuc.edu || --RUMBLE FISH +
- =========================================================================
- Date: Mon, 7 Nov 1994 22:32:41 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
- Subject: Write to a File
-
- Hello
-
- I try to write to a file which works with the following script:
-
- set myString to current date
- set myFile to new file with prompt "Save the Server Log..." default name
- "Server Log"
- open for access myFile with write permission
- write myString of me to myFile
- close access myFile
-
-
- But something goes wrong the result of it in the file is:
-
-
- November 1994 22:27:47
-
- Why do I get so many funny caracters before the date ?????
-
- And how do I write to a second line in the same file, and after another
- start into the third line .....
- What I actually want is,to write to the end of the file but only the date
- and time not funny caracters.
-
- Can anybody help ?!?
-
- Rolf
-
- \|/
- (o o)
- ________________________________oOo__(_)__oOo_________________________________
- ___/\_ | Rolf Kocherhans Internet : rolfk@vetvir.unizh.ch
- / o \/| | University Inst.for Virology Telephone: (+41) 1 3651538
- / _| | Winterthurerstr. 266a Faximile : (+41) 1 3630140
- /_/\__/-\/ | 8057 Zurich SWITZERLAND
- ______________________________________________________________________________
- If it wasn't for Windows, we wouldn't have anything to compare Mac's to
- ______________________________________________________________________________
- =========================================================================
- Date: Mon, 7 Nov 1994 13:44:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Re(2): MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
-
- >
- >I would like to make this script available on gaea. Another thing I never
- >worked out with Frontier is how to make an installer, that includes scripts
- >from different locations in my DB. There are components of this script
- >scattered around my Frontier/Runtime root in:-
- >
- >system.verbs.apps.Eudora (2 additions to glue table)
- >system.verbs.apps.Eudora.eventinfo (1 addition)
- >system.verbs.apps.Mozilla (NetScape's glue table)
- >system.menubars.CSOm (1 menu)
- >
- >Thanks again for your help
- >
- >Jeremy
- >
-
- Jeremy,
-
- Here's a basic installer script. Just put all of the individually-exported
- items into an "Install Files" subfolder, and this script will suck them all
- in sequentially:
-
- on Installer (path)
- local (sourcefolder = file.folderFromPath (path) + "Install Files:")
-
- local (f)
- fileloop (f in sourcefolder, infinity) <<install all the items in the folder
- case file.creator (f)
- 'LAND'
- if memAvail () < 80000
- fileMenu.save ()
- if file.type (f) == '2CLK'
- Frontier.finder2click (f)
- 'DOCS'
- if defined (DocServer)
- try
- app.startWithDocument ("DocServer", f)
- else
- dialog.alert (tryError)
-
- fileMenu.save ()
- dialog.notify ("Installation complete.")
- return (true)
-
- Actually, this one isn't completely basic; it will handle DocServer files
- that are in the folder as well as exported object database items.
-
- If you don't want a separate confirmation/prompt for each imported item,
- you can replace the Frontier.finder2click call with a call to a local
- routine that looks like this:
-
- on loadScriptFile (f)
- local (resdata, cellname, s)
- try
- if not rez.getNthResource (f, 'data', 1, @cellname, @resdata)
- scriptError ("Error reading \"" + file.fileFromPath (f) + "\".")
-
- table.surePath (cellname) <<make sure the table exists
- local (adr = address (cellname))
- bundle <<double-unpack the data
- unpack (@resdata, @resdata)
- unpack (@resdata, @resdata)
- table.moveAndRename (@resdata, adr)
- else
- dialog.notify ("Didn't install " + file.fileFromPath (f) + " [" +
- tryError + ']')
-
- Hope that helps!
-
- Doug
- =========================================================================
- Date: Mon, 7 Nov 1994 13:56:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Write to a File
-
- >Hello
- >
- >I try to write to a file which works with the following script:
- >
- >set myString to current date
- >set myFile to new file with prompt "Save the Server Log..." default name
- >"Server Log"
- >open for access myFile with write permission
- >write myString of me to myFile
- >close access myFile
- >
- >
- >But something goes wrong the result of it in the file is:
- >
- >
- >November 1994 22:27:47
- >
- >Why do I get so many funny caracters before the date ?????
-
-
-
- Write the time as a string, as in:
-
- write (myString of me) as string to myFile
-
- >
- >And how do I write to a second line in the same file, and after another
- >start into the third line .....
-
- Here's a bit of code that writes to the end of a file:
-
- copy (get eof myFile) + 1 to whereToWrite
- -- write the current date & time
- write tab & ((current date) as string) starting at whereToWrite to myFile
-
- (assuming of course, that the file is already open)
-
- >What I actually want is,to write to the end of the file but only the date
- >and time not funny caracters.
- >
- >Can anybody help ?!?
- >
- >Rolf
- >
- > \|/
- > (o o)
- >________________________________oOo__(_)__oOo_________________________________
- > ___/\_ | Rolf Kocherhans Internet : rolfk@vetvir.unizh.ch
- > / o \/| | University Inst.for Virology Telephone: (+41) 1 3651538
- > / _| | Winterthurerstr. 266a Faximile : (+41) 1 3630140
- > /_/\__/-\/ | 8057 Zurich SWITZERLAND
- >______________________________________________________________________________
- > If it wasn't for Windows, we wouldn't have anything to compare Mac's to
- >______________________________________________________________________________
- =========================================================================
- Date: Mon, 7 Nov 1994 16:34:29 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: help
-
- Sorry bout that 'help' thing guys and gals, my nicknames file was skewed :=
- =AC(
-
- Anyway, while I have your attention:
- This is a script I am working on to launch my MUD software that doesn't
- auto start once opened. I have seen that it will accept the AE and startup,
- but the problem is, it waits then quits, ignoring the rest of the code. Any
- help would be greatly appreciated!
- Here's the code, I hope it come through ok:
-
- global whatsNext
- on run
- launch application "MacMud 3.2"
- set whatsNext to "setup"
- end run
-
- on idle
- if whatsNext is "setup" then
- set whatsNext to "Done"
- return (60 / 6)
- else
- tell application "MacMud 3.2"
- "Startup MacMud"
- end tell
- end if
- end idle
-
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- Jaeson M. Engle (aka: Colaks
- Kyraden GodKing)
- xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
- xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
- jme@josaiah.sewanee.edu Elomense(MUD): josaiah.sewanee.edu 19=
- 99
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- =========================================================================
- Date: Mon, 7 Nov 1994 19:00:50 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joe Campbell <jpcampb@AFTERLIFE.NCSC.MIL>
- Subject: Re: Launching an app in the background
-
- > From <@uga.cc.uga.edu:owner-macscrpt@DARTCMS1.DARTMOUTH.EDU> Mon Nov 7
- 18:37:17 1994
- >
- > Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
- >
- > >I am running a script that launches StuffIt Expander. It has the potential of
- > >doing the launching while AfterDark is active. The problem I'm having is that
- > >launching an application while AfterDark is active is causing the application
- > >to not fully launch until AfterDark goes away (I move the mouse or press a
- > >key).
- >
- > When using After Dark, remember the Golden Rule: if it causes you trouble,
- > get rid of it.
-
- At the risk of getting too far off the track, I'll second that and add
- a vote for DarkSide 4.2. IMHO, once you try it, you'll never go back
- to After Dark. Will DarkSide solve your problem?
-
- ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.sit.hqx
-
- Regards,
- Joe
- _____________________________________________________________________________
- | Dr. Campbell N3JBC jpcampb@alpha.ncsc.mil jpcampb@afterlife.ncsc.mil |
- | Speaking for myself Happiness = Reality - Expectations, Click & Clack |
- |___________________ Sun Mail Tool attachments welcomed ____________________|
- =========================================================================
- Date: Mon, 7 Nov 1994 18:33:14 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Script Help
-
- I highly recommend Wayne Walrath's Acme Scripting Widgets package which
- includes several osax that would make you're job easier. The first is the
- Tokenize osax, which returns a list based on user-specified delimiters. Thus,
- you could specify the ascii character representing line feeds and tokenize
- would return a list of everything else. Then, using the Join List osax, you
- could convert the list into a long string with anything between the list
- items, i.e., returns, spaces, etc.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
- I want to be able to read in records from a text file and write them
- out again...The first character of each line is often a LineFeed
- (from a DOS text file) i want to test it (this works) and delete it
- if it is a linefeed...but when i put "characters 2 through (length of
- namefield) of namefield" into a variable it ends up with spaces
- between each of the characters...
-
- I tried to delete character 1 of the variable but apparently it
- doesn't know how to do that...
-
- Also is there a tighter way to do the loop of running through each
- record than what i've done with counting characters (pointer)?
-
- Thanks much, Andy
- -----------------------------------------------
-
- Dennis Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Mon, 7 Nov 1994 18:41:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
- Subject: Re: Writing to a text file
-
- > >> The read/write commands that are part of AppleScript 1.1 allow you to read
- > >> from and write to standard text files. In fact, I'm using one now to log my
- > >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
- > >> ships as part of System 7.5.
- > >>
- > >OK--what are these specific commands? I have AppleScript 1.1, but I can't
- > >find the right commands--I _think_ its "copy", from looking at "Language
- > >at a Glance" but i'm not sure. Thanks.
- > >
- >
- > There scripting additions.
- >
- I assumed that. Which ones are they? The dictionary is not intuitive.
-
- > Perhaps you should invest in a manual!
- >
- I have a manual for 1.0, thank you. It seems silly to buy another one,
- when (theoretically) I could get a simple answer on this mailing list.
-
- eric brunick
-
- + "you're the prettiest of them all, but tell me something....what's wrong +
- + with you, what's wrong with everybody in this crazy place?!?!"--SP +
- + "even the most primitive societies have an innate respect for the insane" +
- + sexonwheelz--ecb41215@uxa.cso.uiuc.edu || --RUMBLE FISH +
- =========================================================================
- Date: Tue, 8 Nov 1994 15:14:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Hypercard Scripting Question
-
- >The problem i'm having
- > is that the script runs fine, and HyperCard is opened, but it is hidden,
- > and does nothing. When I activate HyperCard manually, using the icon
- > on the far right of the Finder's menubar, HyperCard asks me "Where is
- > Home?", to which i answer "X-Archive", and _then_ the folder is created.
-
- Your copy of HyperCard is missing its "Home" stack.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 8 Nov 1994 04:10:15 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: nj@SUNSTATION.FUSL.AC.BE
- Subject: Re: Launching an app in the background
-
- >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
- >
- >>I am running a script that launches StuffIt Expander. It has the potential of
- >>doing the launching while AfterDark is active. The problem I'm having is that
- >>launching an application while AfterDark is active is causing the application
- >>to not fully launch until AfterDark goes away (I move the mouse or press a
- >>key).
- >
- >When using After Dark, remember the Golden Rule: if it causes you trouble,
- >get rid of it.
-
-
- Try Basic Black, free and use 2k of ram.
-
- ------------------------------------------------
- | Nicolas Jungers --> nj@sunstation.fusl.ac.be |
- ------------------------------------------------
- =========================================================================
- Date: Mon, 7 Nov 1994 22:35:37 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Launching an app in the background
-
- >> When using After Dark, remember the Golden Rule: if it causes you trouble,
- >> get rid of it.
- >
- >At the risk of getting too far off the track, I'll second that and add
- >a vote for DarkSide 4.2. IMHO, once you try it, you'll never go back
- >to After Dark. Will DarkSide solve your problem?
- >
- >ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.sit.hqx
- >
- >Regards,
- >Joe
- I had similar problems (crashes actually) involving AfterDark, and decided
- I would try DarkSide. I installed and rebooted (after one of my famous
- crashes) and *wham* straight into the dbugger. This happend 3 times before
- I restarted with extensions and startup items off, pulled the DarkSide
- alias out of my startup items folder and restarted, this time fine. So for
- now, I just turn my monitor off when I'm away.
-
- ==============================================================
- Jaeson M. Engle (aka: Colaks Kyraden GodKing)
- xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
- xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
- jme@josaiah.sewanee.edu Elomense(MUD): josaiah.sewanee.edu 1999
- ==============================================================
- =========================================================================
- Date: Mon, 7 Nov 1994 20:41:33 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
- Subject: Re: Best way to script "Shared" finder info flag?
-
- I wrote:
- >> Could anyone tell me the best way to set a file's "Shared"
- >> finder flag (like in a "Get File/Folder Info..." ResEdit
- >> window) via AppleScript? Does an OSAX exist for this?
-
- walrathw@RFERL.ORG responded:
- > This isn't always a good idea to do. If an application
- > modifies resources in its resource fork, then it's not
- > a good candidate for being a shareable app. You'll be
- > taking chances if you change this.
-
- True. I forgot to mention that this is software I've written,
- which is to run off a server, which means the flag *has* to
- be set if more than one user is to run the program at a time.
- I'm attempting to automate the build process using AppleScript,
- since I've recently switched from MPW to CodeWarrior.
-
- Most applications don't modify themselves, or if they do, only
- trivially. That's what preference files are for.
-
- Which returns me to my earlier question: does such a beast
- exist? I don't mind writing one if it doesn't.
-
- Thanks,
- bobo
- --
- Eric Bowman
- bobo@reed.edu
- Biology Department
- Reed College
- =========================================================================
- Date: Mon, 7 Nov 1994 20:56:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Writing to a text file
-
- >> >> The read/write commands that are part of AppleScript 1.1 allow you to read
- >> >> from and write to standard text files. In fact, I'm using one now to
- >>log my
- >> >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but
- >>1.1.1
- >> >> ships as part of System 7.5.
- >> >>
- >> >OK--what are these specific commands? I have AppleScript 1.1, but I can't
- >> >find the right commands--I _think_ its "copy", from looking at "Language
- >> >at a Glance" but i'm not sure. Thanks.
- >> >
- >>
- >> There scripting additions.
- >>
- >I assumed that. Which ones are they? The dictionary is not intuitive.
-
- Read/Write Commands scripting addition.
-
- Drag the osax to script editor to inspect the aete.
-
- They read/write arbitrary bytes to the data fork of a file
-
- >
- >> Perhaps you should invest in a manual!
- >>
- >I have a manual for 1.0, thank you. It seems silly to buy another one,
- >when (theoretically) I could get a simple answer on this mailing list.
-
- But that ain't what the list is for ... if you can find the answer
- elsewhere first then do that. Its called netiquette. I have noticed an
- alarming drop in the signal to noice ratio recently (to the point where
- people ask the same question that was asked on a few posts before).
-
- That said I think you will learn a lot more if you invest in a few (10s :-)
- of bucks in the AppleScript Language Guide. It really is THE reference!
-
- And AS has changed )especially in osaxen from 1.0 to 1.1.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 7 Nov 1994 22:05:19 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Script Help
-
- ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
- I want to be able to read in records from a text file and write them
- out again...The first character of each line is often a LineFeed
- (from a DOS text file) i want to test it (this works) and delete it
- if it is a linefeed...but when i put "characters 2 through (length of
- namefield) of namefield" into a variable it ends up with spaces
- between each of the characters...
-
- I tried to delete character 1 of the variable but apparently it
- doesn't know how to do that...
-
- Also is there a tighter way to do the loop of running through each
- record than what i've done with counting characters (pointer)?
-
- Thanks much, Andy
- -----------------------------------------------
-
- I highly recommend Wayne Walrath's Acme Scripting Widgets package which
- includes several osax that would make you're job easier. The first is the
- Tokenize osax, which returns a list based on user-specified delimiters. Thus,
- you could specify the ascii character representing line feeds and tokenize
- would return a list of everything else. Then, using the Join List osax, you
- could convert the list into a long string with anything between the list
- items, i.e., returns, spaces, etc.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- Dennis Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Mon, 7 Nov 1994 22:37:50 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Write to a File
-
- On 11/7/94, Rolf Kocherhans wrote:
-
- > Why do I get so many funny caracters before the
- > date ?????
- >
- > And how do I write to a second line in the same
- > file, and after another start into the third
- > line ..... What I actually want is,to write to
- > the end of the file but only the date and time
- > not funny caracters.
- >
- > Can anybody help ?!?
-
- Rolf,
-
- I have a script that toggles my PPP connection open/close depending on its
- current state. If it's closed, it sets a variable to the current date and
- opens the connection. If it's open, it closes the connection, it sets another
- variable to the current date, calculates the number of minutes on-line and
- then writes a log entry to a tab-delimited text file. So long as you don't
- move the file, it writes it to the file every time. When you do move the
- file, it prompts you to find it or create a new one. This should give you
- some hints about writing out to a text file:
-
- ** Toggle PPP Script **
-
- property IconLogFile : "" -- This is the pointer to the log file.
- property MacPPPStatus : "" -- Status of MacPPP
-
- --o Opens or closes PPP Connection, depending on its current state.
- if not (PPPopened) then
- openPPP
- set StartString to current date
- else
- closePPP
- set EndString to current date
- set StartTime to time string of StartString
- set StartDate to date string of StartString
- set EndTime to time string of EndString
- set TimeCalc to round ((EndString - StartString) / minutes) rounding up
- set WriteString to StartDate & tab & StartTime & tab & EndTime & tab &
- TimeCalc & return
- tell me
- WriteIconLog(WriteString)
- end tell
- end if
-
- --o Opens the log file for access or creates a new file
- on WriteIconLog(WriteString)
- try
- set Iconreffile to (open for access IconLogFile with write permission)
- on error
- display dialog #194#
- "Couldn't find the Icon PPP Log file! Would you like to create one "#194#
- & return & "or find it?" buttons {"Create", "Find", "Cancel"} #194#
- default button "Create" with icon -16396
- if button returned of result is "Find" then
- set IconLogFile to (choose file with prompt #194#
- "Find the file Icon PPP Log:" of type "TEXT")
- else
- tell me
- set IconLogFile to CreateNewLog()
- end tell
- end if
- set Iconreffile to (open for access IconLogFile with write permission)
- end try
- write WriteString to Iconreffile starting at eof -- writes to end of file
- close access Iconreffile
- end WriteIconLog
-
- on CreateNewLog()
- set IconLogFile to (new file with prompt "Save Icon Log PPP file As:" #194#
- default name "Icon Log PPP")
- return IconLogFile
- end CreateNewLog
-
- ** End Of Script **
-
- Hope this helps,
-
- Dennis Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Mon, 7 Nov 1994 22:45:56 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Writing to a text file
-
- eric,
-
- > OK--what are these specific commands? I have
- > AppleScript 1.1, but I can't find the right
- > commands--I _think_ its "copy", from looking at
- > "Language at a Glance" but i'm not sure.
- > Thanks.
-
-
- eric,
-
- The commands are contained in an Apple osax called Read/Write Commands
- located in the Scripting Additions folder of your Extensions folder. Drag
- that osax to the Script Editor and you'll get a list of the commands. These
- are the basic commands:
-
- -- This line opens the file for access with write permission
-
- set reffile to (open for access [filespec] with write permission)
-
- -- This line writes a string to a file; eof is the end of the file otherwise
- it replaces the whole file. There are also ways to specify beginning and
- ending characters of the file being written to.
-
- write [string] to reffile starting at eof
-
- -- After you've opened a file for access, you must close access
-
- close access reffile
-
- Hope this helps,
-
- Dennis Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Mon, 7 Nov 1994 22:15:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Daniel Sears <sears@NETCOM.COM>
- Subject: how to make an app recordable
-
- Here's a brief summary of how to make an applicaton recordable that my
- brother Chris cooked up. It is based on the AEGizmo package.
-
- Fast Apple Event Factoring
-
- When writing a factored application, that is an application that sends
- Apple events to itself in response to user interface actions, writing the
- send routines can be as difficult as the receivers. This needn't be the
- case if you use Jens Alfke's most excellent AEGizmo's package. You write
- a printf-like string and pass it with arguments to AEBuild. This string
- can be a little obscure, so here's the tip: put an AEPrint in the Apple
- event handler, write an AppleScript equivalent and fire it from the
- AppleScript editor. AEPrint will print a descriptor that with a small
- amount of editing can be pasted into the factor routine and passed to
- AEBuild. Making an application recordable takes about ten minutes.
- Honest!
- =========================================================================
- Date: Mon, 7 Nov 1994 23:57:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Launching an app in the background
-
- >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
- >
- >>I am running a script that launches StuffIt Expander. It has the potential of
- >>doing the launching while AfterDark is active. The problem I'm having is that
- >>launching an application while AfterDark is active is causing the application
- >>to not fully launch until AfterDark goes away (I move the mouse or press a
- >>key).
- >
- >When using After Dark, remember the Golden Rule: if it causes you trouble,
- >get rid of it.
-
- I did.
-
- However, After Dark does create a few Gestalt selectors. One of those
- returns a function address. By calling that function, you [ie, an osax
- acting for you] can learn things about the current status of After Dark
- (including sleeping/not sleeping). It's been a while, but I think you can
- also "send a wake up call".
-
- I don't have current information (what I have is a couple of years old,
- supplied by Berkeley to the UserLand forum on CompuServe for use with
- Frontier). Berkeley will probably provide the current info on request.
-
- This is not unique to After Dark...some of the Gestalt selectors are common
- across several screen savers...one of those indicates which screen saver is
- running.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 7 Nov 1994 23:57:58 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Eudora auto-reply
-
- >Working on an auto-reply from Eudora & it has one bug: after completing the
- >"connect with checking" and the filtering into mailbox "test" Eudora throws
- >up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
- >OK and the script completes its drill. Tried turning off the Mail Arrived
- >alerts in Eudora but no joy. Anyone tell me what's up?
-
- That's the effect I would expect from trying to start of really Power Mac
- only application on a 68K Mac. [Well behaved Power Mac only apps have
- enough 68K code in CODE resources to put up a "you can't do that on this
- machine" sort of alert, and quit gracefully.]
-
- However, I wouldn't expect that cause in your context.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 7 Nov 1994 23:58:10 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Copyright (was Re: Graphic Scripting & aete library
-
- Lawrence D'Oliveiro writes:
-
- >Leonard Rosenthol <leonardr@NETCOM.COM> writes:
- >
- >>>You would need Copyright clearance for each and every 'aete' resource in
- >>>the collection, from the copyright owner.
- >>
- >> Yeah, the legalities are kinda interesting on this one. The format
- >>of an 'aete', since it is public isn't copyrightable. The standard suite
- >>names, etc. can't be since they are "standard", but one could argue that
- >>the "private" stuff and the combination could be.
- >
- >However, bear in mind what happens when you open a dictionary in the
- >Script Editor, or send a "get terminology" event to an application--you get
- >back a copy of the aete. Is this a violation of copyright? AppleScript
- >caches the aete's, so it doesn't have to keep retrieving them every time
- >you recompile a script--is this a violation of copyright?
- >
- >Say you print the contents of a dictionary window in the Script Editor,
- >and distribute copies (either on paper, or electronically as a QuickDraw GX
- >Portable Digital Document) to people. Is that a violation of copyright?
- >
- >As I understood it, copyright applies to the expression of information, not
- >to the information itself. Given a certain set of terminology information,
- >the aete syntax doesn't give you many choices in how you express that
- >information.
-
- Yes...and the 'aete' is an expression of information. There's probably an
- implied permission to use that information in the course of looking at
- Dictionary windows. [But juries do crazy things.] But it's not at all
- obvious that there is permission to take a resource out of a copyrighted
- work and post it publicly. Particularly when you have a license which the
- courts may or may not uphold eventually which further restricts what you
- can do. Nor is it obvious that one could save a Dictionary window into a
- file and post that. Neither seems like it would be covered under "fair
- use".
-
- Then there's the fact that neither Fred nor Andy can (probably) afford to
- defend the case should one be filed (and one might be, since failing to
- defend a copyright seems to be a bad idea, although it seems less harmful
- than failing to defend a trademark: can I say "aspirin" here? Yes...but
- only because AG Bayer failed to defend it several years ago).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 7 Nov 1994 23:58:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Scriptable Finder questions
-
- >I believe Finder 7.1.3 is "the Scriptable Finder."
-
- The "Scriptable Finder" as I use the term refers to what you get with
- Finder 7.1.3 or later PLUS the Finder Scripting Extension. [Another way to
- put it is that the "Scriptable Finder" is covered in the "Finder Scripting
- Guide".]
-
- The 7.0 Finder supported the old events, so it was "scriptable" (lower
- case, not Apple's definition that "Scriptable" means having an 'aete'. An
- 'aete' for the old Finder showed up in System 7 Pro, so that one was
- "Scriptable".
-
- But the events were no more useful than they were in 7.0. In Frontier, it
- takes some rather clever glue scripts to do the job of sending the events
- (in place in Jan 1992). Until the "Scriptable Finder" as I use the term
- appeared, the Finder wasn't *usefully* scriptable: it took FinderLib
- and/or Finder Liaison and/or osaxen to help out.
-
- As you note, the recording and modern events come with Finder Scripting
- Extension. Eventually, that will be rolled into Finder (at which point the
- result from
-
- tell application "Finder"
- version
- end tell
-
- will jump from a string containing a small number (currently 1.2) to one
- containing Finder's version number...right now it returns the Extension's
- version.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 7 Nov 1994 23:58:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Writing to a text file
-
- >>
- >> >Is there an osax which will allow me to read from and write to a text file?
- >> >I know I can do this with the Scriptable Text Editor, but it seems a bit
- >> >clunky.
- >>
- >> The read/write commands that are part of AppleScript 1.1 allow you to read
- >> from and write to standard text files. In fact, I'm using one now to log my
- >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
- >> ships as part of System 7.5.
- >>
- >OK--what are these specific commands? I have AppleScript 1.1, but I can't
- >find the right commands--I _think_ its "copy", from looking at "Language
- >at a Glance" but i'm not sure. Thanks.
-
- Look at the dictionary for the Scripting Addition (from Apple) named
- Read/Write Commands. If you are on a Power Mac and the commands fail, it
- means you have the broken old Scripting Addition. The new one is in System
- 7.5...it's also available (somewhere...I no longer know, since I no longer
- care) on the net. There were a couple of other broken ones (on Power Mac)
- also...they're also fixed in 7.5 and available.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 7 Nov 1994 23:58:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Write to a File
-
- >Hello
- >
- >I try to write to a file which works with the following script:
- >
- >set myString to current date
- >set myFile to new file with prompt "Save the Server Log..." default name
- >"Server Log"
- >open for access myFile with write permission
- >write myString of me to myFile
- >close access myFile
- >
- >
- >But something goes wrong the result of it in the file is:
- >
- >
- >November 1994 22:27:47
- >
- >Why do I get so many funny caracters before the date ?????
-
- The current date command doesn't return a string. It returns a date object
- (which has a couple of different representations, of which you are seeing
- the raw "object specifier" form in your file, I think).
-
- Try starting with this, instead:
-
- set myString to current date as string
-
- Now, myString really will contain a string, and all is well.
-
- You can separate lines either by using the carriage return string "\r".
- You could simply say
-
- set myString to current date as string & "\r"
-
- However, you will find that AppleScript will uglify your script by changing
- the \r into an actual return. If you use return often, you might want to
- make one in one place, and use it by name:
-
- property cr: "\r"
- ...
- set myString to current date as string & cr
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 8 Nov 1994 00:43:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: PGP Scripts 1.0 (Eudora & PGP)
-
- -----BEGIN PGP SIGNED MESSAGE-----
-
- I've just dropped into "incoming" on gaea a set of scripts that work with
- Eudora 2.1 and MacPGP 2.6ui (Scriptable!). These scripts will
- encrypt/decrypt/sign Eudora messages.
-
- I'm not a real PGP buff, in fact I don't even use it (though may some day
- want to use it). But when I saw that PGP 2.6ui was scriptable I thought it
- would be a great project to write some useful scripts for Eudora users, as
- well as write some scripts for people who are trying to figure out how to
- script Eudora (I myself am still not clear on using notify). Any way there
- are a few tricks I use in scripting Eudora which are mentioned in the docs.
- The scripts are fully functional though there are still some places where
- errors can throw them off. If I have some time I will write more on error
- handlers - so I'll take any bugs reports that people offer.
-
- In my (limited) archie searches I found no US machines that keep PGP. Is
- this some sort of censorship? If not, I would be happy to make an archive
- of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
- docs) and drop it off in gaea for the scriptable apps folder. [Let me know
- Fred if there is a restriction on this.]
-
- Since I like to write portable scripts useful for the nonscripter, these
- scripts use no non-system osaxen, they only requires the apps and
- scriptable finder. I also have tried to make them readable and well
- commented for the newbie scripter.
-
- I'm open to any comments or feedback on these scripts. I'm also almost
- done with the next version of my Duo & Duo Dock companion script "Docker"
- if any Duo owners want to give it a try for me, let me know
-
- PS note this message was signed by one of the PGP scripts ;-)
-
- -Preston
-
- -----BEGIN PGP SIGNATURE-----
- Version: 2.6ui
-
- iQBVAgUBLr8lKGJ6oWuwTm11AQEDOwH9HVIAzOo9bAec+DrcEjsm2Fs0BaisExE/
- J24Mo1BG8TAb/i4ru8l2XxmFlfkP/yRRZXyuyZokW+pzax0+qQQQzw==
- =Xr9H
- -----END PGP SIGNATURE-----
-
- --
- Preston Holmes Neurobiology Unit
- Dept. of Neuroscience, UCSD Scripps Institution of Oceanography
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 8 Nov 1994 01:00:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- At 00:43 11/8/94, Preston Holmes wrote:
- >In my (limited) archie searches I found no US machines that keep PGP. Is
- >this some sort of censorship? If not, I would be happy to make an archive
- >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
- >docs) and drop it off in gaea for the scriptable apps folder. [Let me know
- >Fred if there is a restriction on this.]
-
- Please, don't even think about it. PGP is hard to find for the simple
- reason that it is subject to export restrictions as a result of containing
- encryption software. The author would really like to stay out of jail
- (spending Federal prison time was an active possibility for him last I
- knew--something like 5 to 15). He specifically requests that the
- international version NOT be posted in the US.
-
- In addition to the Federal problems, there are licensing issues...for
- non-commercial use a suitable license is (seems to be) in place...for any
- sort of commerical use, it is necessary to purchase the commercial version.
-
- PGP is available in the US, via the machines at MIT. The process of
- getting it involves directories which do not appear in Archie searches
- (because they don't last long enough).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 8 Nov 1994 10:18:36 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Script Help
-
- > ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
- > I want to be able to read in records from a text file and write them
- > out again...The first character of each line is often a LineFeed
- > (from a DOS text file) i want to test it (this works) and delete it
- > if it is a linefeed...but when i put "characters 2 through (length of
- > namefield) of namefield" into a variable it ends up with spaces
- > between each of the characters...
-
- I think if you write something like:
- text 2 through (length of nameField) of nameField
- you'll get what you want.
-
- > I tried to delete character 1 of the variable but apparently it
- > doesn't know how to do that...
- >
- > Also is there a tighter way to do the loop of running through each
- > record than what i've done with counting characters (pointer)?
- <sniporama>
- > I highly recommend Wayne Walrath's Acme Scripting Widgets package which
- > includes several osax that would make you're job easier. The first is
- > the
-
- Dennis is right <grin> Wayne's widgets would not only decrease the running
- time of your script, but also make your script a little cleaner. If you can't
- get them to do what you need, send me a sample of the text and I'll see if I
- can throw a script together for you.
-
- -wayne
- =========================================================================
- Date: Tue, 8 Nov 1994 05:59:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Best way to script "Shared" finder info flag?
-
- On 11/07/94, WalrathW opined:
-
- > This isn't always a good idea to do. If an application modifies resources in
- > its resource fork, then it's not a good candidate for being a shareable app.
-
- I was under the impression that apps that conform to Apple's guidelines
- (read: not written by Microsoft) are not supposed to write to their own
- resource forks?
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Tue, 8 Nov 1994 05:59:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Copyright (was Re: Graphic Scripting & aete library
-
- Perhaps if developers got email and/or phone calls saying "I'm thinking of
- buying your app but I need something scriptable; could you send me a copy
- of the 'aete', please?" they would realise that such information is useful,
- and release it to archive sites.
-
- It WOULD be nice to be able to look at dictionaries before buying an app.
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Tue, 8 Nov 1994 12:03:48 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Best way to script "Shared" finder info flag?
-
- > > This isn't always a good idea to do. If an application modifies
- > resources in
- > > its resource fork, then it's not a good candidate for being a
- > shareable app.
- >
- > I was under the impression that apps that conform to Apple's guidelines
- > (read: not written by Microsoft) are not supposed to write to their own
- > resource forks?
-
- I didn't intend to suggest it was a good idea (even if you are a big company
- in Seattle), it should never be done for any application you plan to
- distribute or sell (my opinion is that anything you write and only plan to
- use yourself can be as skanky as you can tolerate, not that I ever do this ;)
- ). The reasons being 1) the one we've discussed, namely that it screws up
- the app's shareability, and 2) you could be running on a locked volume. There
- may be others I'm forgetting or don't know, but this is not the best place to
- discuss it.
-
- -wayne
- =========================================================================
- Date: Tue, 8 Nov 1994 08:32:24 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Copyright (was Re: Graphic Scripting & aete library
- In-Reply-To: Your message of "Tue, 08 Nov 94 05:59:16 EST"
-
- Kiran (and everyone else),
-
- >Perhaps if developers got email and/or phone calls saying "I'm thinking of
- >buying your app but I need something scriptable; could you send me a copy
- >of the 'aete', please?" they would realise that such information is useful,
- >and release it to archive sites.
- >
- >It WOULD be nice to be able to look at dictionaries before buying an app.
-
- I've started requesting aetes from developers. I've already created it, and
- Leonard Rosenthol has contributed the aetes from Stuffit Deluxe/Lite 3.5
- (which is due out RSN). I'll putting more in there in the coming weeks, I'm
- sure.
-
- Cheers.
-
- pf
- =========================================================================
- Date: Tue, 8 Nov 1994 08:36:41 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Writing to a text file
- In-Reply-To: Your message of "Mon, 07 Nov 94 20:56:53 PST"
-
- Hi folks,
-
- Kevin Purcell said....
-
- >But that ain't what the list is for ... if you can find the answer
- >elsewhere first then do that. Its called netiquette. I have noticed an
- >alarming drop in the signal to noice ratio recently (to the point where
- >people ask the same question that was asked on a few posts before).
- >
- >That said I think you will learn a lot more if you invest in a few (10s :-)
- >of bucks in the AppleScript Language Guide. It really is THE reference!
-
- I might also suggest that new subscribers grab the digests from gaea.
-
- ftp://gaea.kgs.ukans.edu/applescript/docs/digests/
-
- Search those for the topics you are interested. There is a huge amount of
- collective wisdom in those digests. The on idle question that circulated a
- couple of weeks ago was covered several months ago. So don't pass them up.
-
- pf
- =========================================================================
- Date: Tue, 8 Nov 1994 09:43:19 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Al Best <Best@GEMS.VCU.EDU>
- Subject: Sys 7.5 Launcher, Windowshade
-
- How do I?:
-
- I want the Launcher to go away:
-
- Tell Application "Finder"
- Close Window "Launcher"
- End Tell
-
-
- I want WindowShade to do it's thing on a certain window.
-
- Tell Application "WindowShade"
- Shrink Window "XXX"
- End Tell
-
- THANX!
- ------------
- Al Best, Dept of Biostatistics
- Virginia Commonwealth University, Richmond VA 23298
- 804-828-9824
- Internet: Best@Ruby.VCU.Edu
- =========================================================================
- Date: Tue, 8 Nov 1994 10:30:16 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Elliotte Rusty Harold <elharo@SHOCK.NJIT.EDU>
- Subject: Re: Recordable Applications
-
- > >Can anyone tell me how to find out what apps are recordable, not merely
- > >scriptable? The only recordable apps I know of now are:
- >
- > Excel 5.0
- > Word 6.0 (but it spits out DoScripts with Basic commands)
- > Stuffit Deluxe/Lite
- > InTouch 3.0
- > Cirrus 2.0
- > InfoDepot 2.0
- > JPEG View 3.0 (freeware!)
- > Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
- > JMP 3.0
- > PowerAgent
- > Userland Frontier 2.1 (or later)
- > WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
-
- Is WP 3.1 really recordable? I tried to record it a few days ago and got
- absolutely nothing except the activate event.
-
- Elliotte Rusty Harold
- elharo@shock.njit.edu
- =========================================================================
- Date: Tue, 8 Nov 1994 09:44:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Tom Pollard's GNU diff script
-
- G'morning again,
-
- Tom Pollard has contributed a GNU diff droplet script that I have moved into
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
-
- The script requires AppleScript 1.1, QuicKeys 3.0, and Mark Alldritt's Regular
- Expressions and Choose Files & Folders extensions (from the Script Tools
- collection). Tom's droplet is a user-friendly wrapper for the GNU diff
- file-comparison utility. Be sure to read the Read Me file.
-
- Cheers.
-
- pf
- =========================================================================
- Date: Tue, 8 Nov 1994 10:11:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Diana Oswald <cassa003@MAROON.TC.UMN.EDU>
- Subject: Filemaker Pro & Applescript
-
- I'm running a script in conjunction with a MacHTTP server that allows WWW users
- to search a filemaker pro data base. It works great except if they try and
- search for something that's not in the data base, then they get a cgi
- application error, and the script stays on (I like my scripts to quit after
- they're through - otherwise I get too many things going at once). I'd like to
- return a meaningful statement when their search comes up with nothing. The most
- promising suggestion I've gotten is displayed below - still gets a cgi
- application error. I'm sure it doesn't like the if answer = "", but this works
- for checking to see if http_search_args are empty, so why won't it work for
- this? And if that's not the way to do it, then how? Any suggestions?
-
- -----------------------------------------------
- tell application "FileMaker Pro"
- Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
- Show (every Record of Window "fm_form" whose Cell 7 = your_name)
- copy Field 8 of Window "fm_form" to answer
- Quit Application "FileMaker Pro"
- end tell
- if answer = "" then
- quit
- return http_10_header & "<H1>Sorry</H1> That name is not in my l
- ist."
- else
- quit
- return http_10_header & "<H1>Here is your list!</H1><hr> " & ans
- wer
- end if
- ------------------------------------------------
-
- Thanks for your time and consideration.
-
- Sincerely,
- =========================================================================
- Date: Tue, 8 Nov 1994 11:19:39 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Stack overflow error
-
- I have a script that occasionally spits out a "Stack Overflow" error message.
- The script uses Anarchie to get the contents of a directory out on the net and
- displays it in a window. Then it selects the window's contents and stuffs the
- URL listing into a variable.
-
- Is this the problem? Is the variable be reaching a limit on the size it can
- use?. (I generally have 4+ Meg of RAM available when this runs and the allocated
- memory for the applet is about 750K).
-
- So I guess my question is, under what circumstances does this error occur? Has
- anyone experienced this type of error message? How does one get rid of it?
-
- --
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- --
- =========================================================================
- Date: Tue, 8 Nov 1994 09:02:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: Launching an app in the background
-
- > > From <@uga.cc.uga.edu:owner-macscrpt@DARTCMS1.DARTMOUTH.EDU> Mon
- > > Nov 7
- > 18:37:17 1994
- > >
- > > Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
- > >
- > > >I am running a script that launches StuffIt Expander. It has
- > > >the potential of doing the launching while AfterDark is active.
- > > >The problem I'm having is that launching an application while
- > > >AfterDark is active is causing the application to not fully
- > > >launch until AfterDark goes away (I move the mouse or press a key).
- > >
- > > When using After Dark, remember the Golden Rule: if it causes
- > > you trouble, get rid of it.
- >
- > At the risk of getting too far off the track, I'll second that and add
- > a vote for DarkSide 4.2. IMHO, once you try it, you'll never go back
- > to After Dark. Will DarkSide solve your problem?
- >
- > ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.
- > sit.hqx
- >
- > Regards,
- > Joe
-
- I have been using Darkside (4.1) with good results. It seems to be working
- fine with cron and AppleScript. Unfortunately, there is a push to use After
- Dark because we just updated our license from 2.0 to 3.0 just for the purpose
- of putting it on our PowerMacs (300 of them). My personal thought is greater
- compatibility overrides any money that we have spent in the past.
-
- Maybe we could get a refund from Berkeley for this wonderfully incompatible
- product they have released.
-
- I do believe that After Dark 3.0 now qualifies to be a Microsoft product; it
- is big, slow and incompatible with other applications.
-
- Has anyone else had a problem with Darkside besides Jaeson M. Engle's crashing
- problem on startup? What system and computer are you running Jaeson? We're
- using PowerMac 6100/60's s/16 MB running 7.5.
-
- Greg Francis
- =========================================================================
- Date: Tue, 8 Nov 1994 11:06:44 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: PowerTalk again
-
- Ok Apple, what have you done to me with system 7.5. I don't want to start
- another PowerTalk argument, but what little I could do with scripting and
- PowerTalk seems to have been destroyed by System 7.5.
-
- I had set up a mail print server that just printed new mail messages that
- came into a Visitor's mailbox to an attached printer (these are work order
- forms in case you are curious why I would do that). The code was quit
- simple, the core being telling the finder to print an item out of the mail
- box and then telling KeyQuencer to hit the enter key. The below code,
- without bells and whistle, would print out the first message in the mailbox
-
- tell application "finder"
- print item 1 of item 1 of item "Technical Services" --mail box
- tell application "KQ Apple Events"
- DoScript "waitwindow dialog open
- key enter"
- end tell
- end tell
-
- Under 7.5 I now get a error message that item 1 of .. doesn't understand
- the print message. I can't open it, copy it, move it, or do anything except
- confirm its existence. I could not do any of that before, but I could at
- least print it.
-
- Again, thanks a lot Apple. When are you going to get off you butts and
- provide some scripting support for PowerTalk (I know you'r out there)?
-
-
- Steve Alex (steve_alex@aidt.edu)
-
- _/_/_/ _/ _/_/_/_/ _/_/_/_/ Alabama Industrial
- _/ _/ _/ _/ _/ _/ Development Training
- _/_/_/_/_/ _/ _/ _/ _/ 75 TechnaCenter Dr.
- _/ _/ _/ _/ _/ _/ Montgomery AL, 36117
- _/ _/ _/ _/_/_/_/ _/ (205) 242-2675
- =========================================================================
- Date: Tue, 8 Nov 1994 09:23:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Write to a File
-
- >You can separate lines either by using the carriage return string "\r".
- >You could simply say
- >
- >set myString to current date as string & "\r"
- >
- >However, you will find that AppleScript will uglify your script by changing
- >the \r into an actual return. If you use return often, you might want to
- >make one in one place, and use it by name:
- >
- >property cr: "\r"
- >...
- >set myString to current date as string & cr
-
-
- You don't even need to do this -- space, tab and return are defined a
- symbolic string constants so
-
- set myString to current date as string & return
-
- works fine and is more readable to boot.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Tue, 8 Nov 1994 09:25:09 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
- Subject: Dictionary
-
- In response to:
-
- > >I assumed that. Which ones are they? The dictionary is not
- > > intuitive.
-
- Kevin Purcell writes:
-
- KP> Read/Write Commands scripting addition.
- KP>
- KP> Drag the osax to script editor to inspect the aete.
-
- But that's not always a good idea. So far as I can tell, the stuff in
- the dictionary is no more trustworthy than the comments in a Fortran
- code. There doesn't seem to by anything that checks for consistency
- between what the dictionary says and what the thingy actually does.
-
- In the case of read/write, above, the dictionary is just wrong. It says:
-
- RW> read: Read from file.
- RW> read anything -- reference number or file to read
- RW> using delimiters list -- Delimiters to use. May use 1 or 2
- RW> delimiters.
- RW> using delimiter anything -- Delimiters to use. May use 1 or 2
- RW> delimiters.
- RW> [as anything] -- read this data in this form
- RW> [for integer] -- read for this number of bytes
- RW> [before string] -- Read to this delimiter excluding it. A
- RW> delimiter is a single character.
- RW> [until string] -- Read to this delimiter including it. A
- RW> delimiter is a single character.
- RW> [to integer] -- read from current mark to this byte
- RW> [from integer] -- read from this byte
- RW> Result: anything -- data returned or error
-
- which implies that "using delimiters list" and "using delimiter
- anything" are both *required* when invoking read. In fact, according to
- the publication "Scripting Additions Guide, Apple ID 030-5098-A, the
- form is:
-
- SAG> read referenceToFile
-
- with everything else optional. referenceToFile, by the way, can't be
- just any old thing as the dictionary implies, it must be a reference of
- the form "file..." or "alias..." or a file reference number.
-
- In fact, "using" isn't even an option except as a subunit of an "as"
- clause, and the trailing "s" on delimiters is purely optional.
-
- Doggone - you just don't know whom to trust these days.
-
- In this case I think the dictionary is wrong and the manual is right. In
- the general case, it's best to consult the listing of the OSAX, which
- may be hard to come by.
-
- Have fun,
- >>>>>Nelson@nbyrne.SAIC.com
- Nelson Byrne
- SAIC LOC#001/MS#C2
- 10260 Camp Uspoint Drive
- Sandy Eggo, CA 92121
- >>>>>(619) 546-6485
- =========================================================================
- Date: Tue, 8 Nov 1994 09:26:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Michel <michel@NETCOM.COM>
- Subject: Re: Write to a File
-
- John Baxter wrote:
-
- >set myString to current date as string & "\r"
- >
- >However, you will find that AppleScript will uglify your script by changing
- >the \r into an actual return. If you use return often, you might want to
- >make one in one place, and use it by name:
- >
- >property cr: "\r"
- >...
- >set myString to current date as string & cr
- >
-
- You don't need to define the property. AppleScript has a return constant, so,
-
- set myString to current date as string & return
-
- works.
-
- Steve
- =========================================================================
- Date: Tue, 8 Nov 1994 09:45:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >In my (limited) archie searches I found no US machines that keep PGP. Is
- >this some sort of censorship? If not, I would be happy to make an archive
- >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
- >docs) and drop it off in gaea for the scriptable apps folder. [Let me know
- >Fred if there is a restriction on this.]
-
- You can get it freely from MIT but you need to send them a request stating
- that you won't export it and are an American citizen or resident (those
- pesky "encryption as munitions" export control rules and probably rules
- property rights to RSAs public keys schemes). Of course data knows no
- border and there are copies of all versions of PGP outside the US.
-
- I think if you read you license you will find you're not allowed to
- redistribute it.
-
- There is also supposed to be an international version which avoids these
- problems (probably by being written outside of the US).
-
- For those interested by a copy of "Applied Cryptography", an excellent book
- with plenty of source code. Due to the First Ammendement the book can be
- published an exported but the sample code disk (even though it is identical
- to the code in the book) can be exported! I beleive that MIT are going to
- publish a book on the internals of PGP for a similar reason.
-
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Tue, 8 Nov 1994 07:33:50 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: Announcement: TEXT processing utility
-
- Greetings,
- I have created an AppleScript to somewhat intelligently remove line
- returns from text files. Its behaviour is simple, but generally
- effective at cleaning up text files.
-
- HERE IS THE HOW SCRIPT BEHAVES:
- If the preceding line is longer than the threshold hold length, then the
- line return between the current line and the preceding line is removed.
-
- There is no documentation as of yet so here is the documentation!
- The droplet supports drag-n-drop of files/folders.
- It only processes files of type TEXT
- It does not modify the original file, it creates a separate output file
- with a paragraph-mark suffix on the end of its name.
- To set the threshold, double click to open the droplet, then click the
- CANCEL button. You can then set the threshold character length.
-
-
- I AM NO LONGER ON THE LIST, SO EMAIL ME DIRECTLY IF YOU ARE INTERESTED.
-
- aloha kaua,
- -peter
- =========================================================================
- Date: Tue, 8 Nov 1994 12:10:38 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Announcement: TEXT processing utility
- In-Reply-To: Your message of "Tue, 08 Nov 94 07:33:50 -1000"
-
- Peter,
-
- >I AM NO LONGER ON THE LIST, SO EMAIL ME DIRECTLY IF YOU ARE INTERESTED.
-
- Please send me a copy of the script. Would you mind my putting it on gaea?
-
- Thanks.
-
- pf
- =========================================================================
- Date: Tue, 8 Nov 1994 10:12:50 LCL
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tim Keanini <Tim_Keanini@BRODER.COM>
- Subject: Re[2]: PGP Scripts 1.0 (Eudora & PGP)
-
- >Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >Preston Holmes wrote:
- >In my (limited) archie searches I found no US machines that keep PGP. Is
- >this some sort of censorship? If not, I would be happy to make an archive
- >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
- >docs) and drop it off in gaea for the scriptable apps folder. [Let me know
- >Fred if there is a restriction on this.]
-
- This issue of encryption is a large can of worms and anyone really interested in
- it should get trusted information from the EFF (Electronic Frontier Foundation)
- and the cypherpunks mailing list. Enough said.
-
- MIT has pgp available by way of net-dist.mit.edu
- You anon ftp there, and in the PGP directory there is a README that will explain
- how to get it. You have to telnet back in and answer a few questions to agree
- to a policy. You are then given a directory name to grab the distribution from.
-
- Please mail me if you have questions on pgp at:
-
- blast@worldbit.com
-
- The first time I saw PGP for the Mac I felt that is really needed some help on
- the UI side of things. PGP for UNIX is realy nice because you can pipe things
- through it. Things that require encryption can just be piped on through and
- BOOM, privacy galore. The MacPGP is odd because if you dont write applescipt,
- frontier scripts, or quickeys sequences for it, it is really inconvienient to
- use. Just my $000,000,000.02.
-
- --blast
- =========================================================================
- Date: Wed, 9 Nov 1994 09:10:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Copyright (was Re: Graphic Scripting & aete library
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >Lawrence D'Oliveiro writes:
- >>
- >>As I understood it, copyright applies to the expression of information, not
- >>to the information itself. Given a certain set of terminology information,
- >>the aete syntax doesn't give you many choices in how you express that
- >>information.
- >
- >Yes...and the 'aete' is an expression of information.
-
- Yes, but as I undertand it, it is only copyrightable if it's a sufficiently
- unique expression of that information. There is very little creativity or
- free choice involved in encoding terminology information in an aete.
-
- Now, if you were to express the terminology as a poem, or as a stage display,
- or as an entry in the Obfuscated C contest, you should be able to copyright
- that...
-
- >Then there's the fact that neither Fred nor Andy can (probably) afford to
- >defend the case should one be filed...
-
- That's what it comes down to in the end, doesn't it? The threat of legal
- action can be just as effective as the legal action itself. And the threat
- isn't subject to rulings by the courts...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 8 Nov 1994 15:50:27 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: File Marker
-
- Using Apple's Read/Write commands, how do you determine the current file marker
- position during a read or write? Is there a more elegant way than using a
- variable within the script for calculating offsets or something similiar
- algorithm? (I'd like to use the current file marker position to update the
- scriptable progress bar).
-
- Also, how would I optimize reading a chunk of one text file and writing that
- same chunk to another file for speedier performance? Would reading the file as
- binary be truly faster or does Applescript crawl when doing this type of
- processing? Does anyone have sample scripts they've written using binary read/
- write?
-
- --
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- --
- =========================================================================
- Date: Tue, 8 Nov 1994 21:17:23 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bill Bedford <billb@MOUSA.DEMON.CO.UK>
- Subject: Re: Recordable Applications
-
- >>Can anyone tell me how to find out what apps are recordable, not merely
- >>scriptable? The only recordable apps I know of now are:
- >
- >Excel 5.0
- >Word 6.0 (but it spits out DoScripts with Basic commands)
- >Stuffit Deluxe/Lite
- >InTouch 3.0
- >Cirrus 2.0
- >InfoDepot 2.0
- >JPEG View 3.0 (freeware!)
- >Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
- >JMP 3.0
- >PowerAgent
- >Userland Frontier 2.1 (or later)
- >WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
- >
- >With the AppleScript Scripters kit they provided a guide to Scriptable
- >Applications (most of these are in there).
- >
-
- Plus three new(ish) ones
-
- Anarchie 1.40
- Finger 1.50
- Netscape 0.9b
-
- ------------------------------------------------------------------------
- Bill Bedford Designer of Photo-Etches
- billb@mousa.demon.co.uk
- +44 9505 327
-
- Living on a island gives the world a different perspective
- ------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 8 Nov 1994 22:26:14 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: creating "date" Descriptor
-
- I need some hints on the easiest way to create an AEDesc of type date.
-
- I found the class definition in the 'aeut' resource of the English dialect,
- so I presume I could build one by adding the individual properties into a
- record descriptor of type 'ldt ', but this seems like too much work. I have a
- feeling I must be able to get by easier than that.
-
- I sent myself an AE with a date object in it and checked out the size of the
- descriptor data: 8 bytes. Is this the seconds since the dawn of mac time with
- four bytes to spare?
-
- Ideally I would like to be able to call GetDateTime(), then pass this value
- to the AE Manager and have it get coerced properly. Possible?
-
- On a related note, how can I find out what AE Handlers, coercion and all, are
- installed in the system (or an application)? I tried using the Apple fkey for
- this purpose but it hung my Quad800 just as the dialog box came up. I didn't
- try twice.
-
- -wayne
- =========================================================================
- Date: Tue, 8 Nov 1994 13:56:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Best way to script "Shared" finder info flag?
-
- >On 11/07/94, WalrathW opined:
- >
- >> This isn't always a good idea to do. If an application modifies resources in
- >> its resource fork, then it's not a good candidate for being a shareable app.
- >
- >I was under the impression that apps that conform to Apple's guidelines
- >(read: not written by Microsoft) are not supposed to write to their own
- >resource forks?
- >
-
- The flag in question isn't in the resource fork of the file...it is
- maintained in the file system, in the "Finder Information". When set, it
- informs Finder that multiple launches (normally on different machines) are
- OK.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 9 Nov 1994 00:09:22 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Filemaker Pro & Applescript
-
- > return a meaningful statement when their search comes up with nothing. The
- most
- > promising suggestion I've gotten is displayed below - still gets a cgi
- > application error. I'm sure it doesn't like the if answer = "", but this
- works
- > for checking to see if http_search_args are empty, so why won't it work for
- > this? And if that's not the way to do it, then how? Any suggestions?
-
- If you are getting some sort of error back from FMP, you should have your
- statements wrapped in a try/on error/end block. Then if the error catcher
- fires, you can just return that message back to the user, or alternately
- return one of your own choosing. I seem to recall that FMP could be a little
- finicky at times when it was being scripted.
-
- try
- tell app "FileMaker Pro"
- --blah, blah
- end tell
- on error errMsg number errNum
- -- errMsg contains the text describing the error and errNum the error
- number
- return http_10_header & errNum & " " & errMsg
-
- -- or, if you prefer, send back your own message.
- --return http_10_header & "Sorry, all out of cheeseburgers and pepsi
- today."
- end try
-
- It's not too that hard to see what's going on within your scripts while they
- are running. Just write a little handler which sends its argument to a
- Scriptable Text Editor window, and like magic, you've got real-time debug
- information coming up in front of you. Sprinkle these debug statements all
- through your script to see the value of variables, results, etc. It's safe
- and fun for the whole family!
-
-
- -wayne
- =========================================================================
- Date: Tue, 8 Nov 1994 18:12:47 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Launching an app in the background
-
- >I do believe that After Dark 3.0 now qualifies to be a Microsoft product; it
- >is big, slow and incompatible with other applications.
- >
- >Has anyone else had a problem with Darkside besides Jaeson M. Engle's crashing
- >problem on startup? What system and computer are you running Jaeson? We're
- >using PowerMac 6100/60's s/16 MB running 7.5.
- >
- >Greg Francis
- I'm running a Quadra 660av, sys 7.1, 8 physical RAM (RAMTripled to 24). I
- have 4 programs that run all the time (MacHTTP, MailShare, MacMud (esp.
- crash prone btw), and Finder Liaison 1.1, in lieu of the SF). On top of
- these, this is my normal workstation so, many others tend to be running at
- various times.
-
- And I agree, AD 3.0 is looking very M*croS*ft-ish. Yuck!
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Tue, 8 Nov 1994 21:03:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brad Ackerman <brad@N1MNB.OAU.ORG>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >You can get it freely from MIT but you need to send them a request stating
- >that you won't export it and are an American citizen or resident (those
- >pesky "encryption as munitions" export control rules and probably rules
- >property rights to RSAs public keys schemes). Of course data knows no
- >border and there are copies of all versions of PGP outside the US.
-
- In other words, you lie through your teeth. [Unfortunately, being a US
- resident isn't a lie for me, but other parts may be.]
-
- >I think if you read you license you will find you're not allowed to
- >redistribute it.
-
- Correct. Of course, this is invalid outside of the United States.
-
-
-
- ===============================================================================
- Brad Ackerman N1MNB brad@n1mnb.oau.org
- Micro$oft-free since 1978 Finger this acct for key --> brad@gate.net
- PGP: C3 0D 6F 6B A6 7F 22 6C 93 A3 FE 00 D6 70 9E 99 (by mail or finger)
- =========================================================================
- Date: Tue, 8 Nov 1994 19:40:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Robert W. Harder" <harder@ENGR.ORST.EDU>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- Let's leave the problem of getting MacPGP to the individual and go ahead
- and post the scripts that have been written.
-
- BTW, I have System 7.5 and got an RSA key with it (went through the notary
- and all that). Can that key be used with PGP? It is certainly verified, and
- that should be worth more than other people's signature on the public key.
-
-
- ,,,
- `(. .)'
- o-------------oOo-(_)-oSu-------------------------------o
- | | | | | Robert W. Harder | | | | |
- | Windsor, California | harder@engr.orst.edu |
- | | Corvallis, Oregon | | harderr.rhn.orst.edu |
- | | 503-737-9919 | | | Wilson 419 | | |
- | | | | | | | | | | | | | | |
- |,,.U,/,\.,\\s,,|,\A|,,.F\/,r,.,|,o/T,.//,,c|\\\/,,,|\\,|
- =========================================================================
- Date: Tue, 8 Nov 1994 22:50:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
- Subject: Re: Recordable Applications -Reply
-
- 3.1 is not currently recordable to applescript. It is, however,
- recordable to its own macro language and which is capable of
- interfacing with AppleScript (AS can call macros and Macros can run
- scripts...)
-
- Andrew Cemelli
- Systems Engineer, Novell
- (ANDYC@WordPerfect.com)
- ---------------------------------------------------
- The fact that I'm opinionated is not my employer's fault.
- ---------------------------------------------------
- .
-
- >>> Elliotte Rusty Harold <elharo@SHOCK.NJIT.EDU> - 11/8/94 7:30 AM
- >>>
- > >Can anyone tell me how to find out what apps are recordable, not
- merely
- > >scriptable? The only recordable apps I know of now are:
- <...deleted...>
- > WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
-
- Is WP 3.1 really recordable? I tried to record it a few days ago and
- got absolutely nothing except the activate event.
-
- Elliotte Rusty Harold elharo@shock.njit.edu
- =========================================================================
- Date: Tue, 8 Nov 1994 20:23:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Carlin E. Wiegner" <cew@LELAND.STANFORD.EDU>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >BTW, I have System 7.5 and got an RSA key with it (went through the notary
- >and all that). Can that key be used with PGP? It is certainly verified, and
- >that should be worth more than other people's signature on the public key.
-
- Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
- well, can you pass on any information you get....
- CW
-
- Carlin Edward Wiegner e-mail: cew@leland.stanford.edu
- P.O. Box 9998 www: http://quark.stanford.edu
- Stanford, CA 94309
- =========================================================================
- Date: Tue, 8 Nov 1994 20:51:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Write to a File
-
- >>You can separate lines either by using the carriage return string "\r".
- >>You could simply say
- >>
- >>set myString to current date as string & "\r"
- >>
- >>However, you will find that AppleScript will uglify your script by changing
- >>the \r into an actual return. If you use return often, you might want to
- >>make one in one place, and use it by name:
- >>
- >>property cr: "\r"
- >>...
- >>set myString to current date as string & cr
- >
- >
- >You don't even need to do this -- space, tab and return are defined a
- >symbolic string constants so
- >
- >set myString to current date as string & return
- >
- >works fine and is more readable to boot.
-
- I thought return might be so defined. I'd rather not use it myself (but
- should have mentioned it) simply because the poor old word "return" has two
- meanings, totally different. AppleScript may not have any trouble with
- that, but I do.
-
- And yes,
- return return
- is a legal AppleScript statement, and manages to do what one would expect.
- And the formatting does help (if you set it up right), since the first
- return is formatted as a language keyword, and the second as an application
- keyword.
-
- Once again, I'm glad I didn't write that parser! --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 8 Nov 1994 21:32:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: creating "date" Descriptor
-
- >I need some hints on the easiest way to create an AEDesc of type date.
- >
- >I found the class definition in the 'aeut' resource of the English dialect,
- >so I presume I could build one by adding the individual properties into a
- >record descriptor of type 'ldt ', but this seems like too much work. I have=
- a
- >feeling I must be able to get by easier than that.
-
- Despite what the 'aeut' implies, an 'ldt ' descriptor is actually an 8 byte
- binary number, in the long date time format...signed seconds since (or
- before) the start of January 1, 1904 [necessarily ignoring leap seconds].
-
- >
- >Ideally I would like to be able to call GetDateTime(), then pass this value
- >to the AE Manager and have it get coerced properly. Possible?
-
- Use GetDateTime () to get the low word of the LongDateTime type, and put a
- zero into the top (works through February 6 of 2040 at 6:28:15). IM: OS
- Utilities types LongDateTime as a comp (the 64-bit SANE integer type). But
- the newer Universal headers type it as
- typedef wide LongDateTime;
-
- where type wide is
- struct wide {
- SInt32 hi;
- UInt32 lo;
- };
- typedef struct wide wide, *WidePtr;
-
- and SInt32 and UInt32 are what you think they are.
-
- So, for example:
- LongDateTime d =3D {0, 0};
-
- GetDateTime (&d.lo);
-
- You can also probably create record like this (using Frontier notation):
-
- {'want': 'ldt ', 'from': nil, 'form': 'name', 'seld': "a string
- representing the date and time"}
-
- then coerce that to a record, and coerce that to an 'ldt '.
-
- I haven't tried the above in C. In Frontier, I coerce between 'ldt ' and
- =46rontier 'date' (the 4 byte seconds since start-of-time, as an unsigned
- value) with these scripts:
-
- on fromLongDate (aLongDate)
- if typeOf (aLongDate) =3D=3D binaryType and getBinaryType (aLongDate) =
- =3D=3D 'ldt '
- if number (binary (string.mid (aLongDate, 1, 4))) !=3D 0
- scriptError (displayString (aLongDate) + " is out of range for
- conversion to a date.")
- return (date (binary (string.mid (aLongDate, 5, 4))))
- else =AB It's not a long date...try just coercing it to date
- return (date (aLongDate))
-
- and
-
- on toLongDate (aDate)
- local (longDateType =3D 'ldt ', result)
- if typeOf (aDate) =3D=3D binaryType and getBinaryType (aDate) =3D=3D lon=
- gDateType
- return (aDate) =AB It=B9s already a long date
- aDate =3D date (aDate)
- result =3D binary (string (binary (0)) + string (binary (aDate)))
- setBinaryType (@result, longDateType)
- return (result)
-
- >
- >On a related note, how can I find out what AE Handlers, coercion and all, a=
- re
- >installed in the system (or an application)? I tried using the Apple fkey f=
- or
- >this purpose but it hung my Quad800 just as the dialog box came up. I didn'=
- t
- >try twice.
- >
-
- I've had that hang (both IIci under 7.1 and 8100 under 7.1.2), but only
- when Finder is the frontmost application, and not with my current System
- installation (7.5 on either machine). It's been discussed here, with no
- definitive statement as to what conditions are necessary to the failure.
- Other users of the FKEY have never seen it. I currently avoid using it
- with Finder in front if I have many apps open or any unsaved work, just in
- case.
-
- --John the longwinded
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 8 Nov 1994 23:40:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Robert W. Harder" <harder@ENGR.ORST.EDU>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >>BTW, I have System 7.5 and got an RSA key with it (went through the notary
- >>and all that). Can that key be used with PGP? It is certainly verified, and
- >>that should be worth more than other people's signature on the public key.
- >
- >Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
- >well, can you pass on any information you get....
- >CW
-
- That wasn't so bad once I got past the crashing PowerTalk. You need three
- forms of ID, one or two of which must be photo ID. A credit card will
- suffice for the third. You print out a form from the digisign app which has
- "garbage" that means something to RSA. They send you back a disk with a
- signer file onto which you drop files (with PowerTalk turned on). You don't
- have to send a disk in, though you may want to send in the printed form
- electronically as well. Both disks come back. Until encryption/signing is
- more integrated to the system (even with the unstable PT it's not great--I
- don't have PT on now), I probably just won't use it. Too bad, it's like
- sending a letter in an envelope not a postcard--nothing major, but good to
- have.
-
- Am I straying from scripting? Better to keep this on CypherPunks unless we
- are scripting the stuff...
-
-
- ,,,
- `(. .)'
- o-------------oOo-(_)-oSu-------------------------------o
- | | | | | Robert W. Harder | | | | |
- | Windsor, California | harder@engr.orst.edu |
- | | Corvallis, Oregon | | harderr.rhn.orst.edu |
- | | 503-737-9919 | | | Wilson 419 | | |
- | | | | | | | | | | | | | | |
- |,,.U,/,\.,\\s,,|,\A|,,.F\/,r,.,|,o/T,.//,,c|\\\/,,,|\\,|
- =========================================================================
- Date: Wed, 9 Nov 1994 10:38:00 N
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Dr. Levy'S Lab, Gilat" <VFJLEV@VOLCANI.BITNET>
- Subject: Re: Writing to a text file
-
- Re: Writing to a text file
- Dennis Whiteman says:
-
- >The commands are contained in an Apple osax called Read/Write Commands
- >located in the Scripting Additions folder of your Extensions folder. Drag
- >that osax to the Script Editor and you'll get a list of the commands. These
- >are the basic commands:
- ..
-
- How do you DRAG that osax to the Script Editor? What exactly do you do?
-
- YL
- =========================================================================
- Date: Wed, 9 Nov 1994 08:06:10 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): Writing to a text file
-
- ------ From: Macintosh Scripting Systems, Wed, Nov 9, 1994 ------
- > How do you DRAG that osax to the Script Editor?
- > What exactly do you do?
-
- Perhaps you should open it from within the Script Editor application.
-
- 1) Double-click on the Script Editor application to open it.
- 2) After it's opened (i.e., the menus have changed), Choose
- "Open Dictionary" from the File Menu. An open dialog should appear.
- 3) Unless you're using AppleScript 1.0, a button will be at the bottom
- of the dialog saying "Go To Scripting Additions Folder" or some such.
- Click on it.
- 4) Scroll down to the Read/Write Commands file and move your mouse over
- it. Click once.
- 5) Click the open button with your mouse.
-
- The dictionary should open, listing all the commands for that particularly
- osax. This works for any file that shows up in the dialog while you are in
- the script editor, including scriptable applications.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Wed, 9 Nov 1994 07:58:15 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brent Schneeman <snowman@RASSP.RASSP.MOT.COM>
- Subject: Setting file type and creator
-
- I'm trying to write a script which modifies a file's type and creator code.
- Specifically, I want to turn an un-typed file into an Excel file. I tried
- this:
-
- on run
- set FileName to (choose file)
- set type of file FileName to "XLS4"
- set Creator of file FileName to "XCEL"
- end run
-
- and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
- tried referring to FileName in many different ways (as text, as data, ...)
- but still get errors. Please help me.
-
- I'm using System 7.5 and AS1.1
-
-
- --
- | \|/
- Brent Schneeman | ___.oO___|_ (It's a snowman in the desert
- snowman@rassp.rassp.mot.com | next to a saguaro)
-
- "He never cried crack until he brought him home as drunk as a boiled owl"
- -James Joyce
- =========================================================================
- Date: Wed, 9 Nov 1994 11:38:31 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re: Setting file type and creator
-
- >I'm trying to write a script which modifies a file's type and creator code.
- >Specifically, I want to turn an un-typed file into an Excel file. I tried
- >this:
- >
- >on run
- > set FileName to (choose file)
- > set type of file FileName to "XLS4"
- > set Creator of file FileName to "XCEL"
- >end run
- >
- >and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
- >tried referring to FileName in many different ways (as text, as data, ...)
- >but still get errors. Please help me.
- >
- >I'm using System 7.5 and AS1.1
-
-
- Close, but use the scriptable finder
-
- tell application "Finder"
- set FileName to (choose file)
- set file type of FileName to "XLS4"
- set creator type of FileName to "XCEL"
-
- end tell
-
- Steve Alex (steve_alex@aidt.edu)
-
- _/_/_/ _/ _/_/_/_/ _/_/_/_/ Alabama Industrial
- _/ _/ _/ _/ _/ _/ Development Training
- _/_/_/_/_/ _/ _/ _/ _/ 75 TechnaCenter Dr.
- _/ _/ _/ _/ _/ _/ Montgomery AL, 36117
- _/ _/ _/ _/_/_/_/ _/ (205) 242-2675
- =========================================================================
- Date: Wed, 9 Nov 1994 09:39:51 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: Re- FileMaker Pro and Apple
-
- Subject: Time:9:33
- OFFICE MEMO Re: FileMaker Pro and AppleScript Date:11/9/94
- Maybe I missing something but can you use Try and On Error to test for error
- conditions i.e.
-
- tell application "FileMaker Pro"
- try
- every Record whose Cell 1 = "testData"
- on error number errNum
- if errNum = -1728 then -- object not found
- 'do some stuff in here'
- else
- 'do some other stuff'
- end if
- end try
- end tell
-
- Regards
- Stephen
- =========================================================================
- Date: Wed, 9 Nov 1994 19:35:40 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Setting file type and creator
-
- > on run
- > set FileName to (choose file)
- > set type of file FileName to "XLS4"
- > set Creator of file FileName to "XCEL"
- > end run
-
- While I don't have extensive experience with scripting the Finder (nor do I
- even have the finder scripting extension installed on my lowly IIci at home
- here so I can't test this), I expect you need to direct the commands to the
- Finder:
-
- tell application "Finder"
- set creator type of file "American Fool:Desktop Folder:jim response" to
- "ttxt"
- end tell
-
- At the moment you are telling AppleScript to set the creator type, a task for
- which it knows nothing about unless there is an osax installed which would
- receive the message. I also think you need to use "creator type" and "file
- type" but I could very well be wrong.
-
- -wayne
- =========================================================================
- Date: Wed, 9 Nov 1994 11:04:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >BTW, I have System 7.5 and got an RSA key with it (went through the notary
- >and all that). Can that key be used with PGP? It is certainly verified, and
- >that should be worth more than other people's signature on the public key.
-
- Not their different.
-
- Verifying PGP keys is an intereting problem which will be solved with
- keyservers watching public transactions (like newsgroup posts and mailing
- list posts) and associating your key with your mailing address.
-
- Kinda like building a credit record.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 9 Nov 1994 11:19:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
-
- >>BTW, I have System 7.5 and got an RSA key with it (went through the notary
- >>and all that). Can that key be used with PGP? It is certainly verified, and
- >>that should be worth more than other people's signature on the public key.
- >
- >Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
- >well, can you pass on any information you get....
- >CW
- >
- >Carlin Edward Wiegner e-mail: cew@leland.stanford.edu
- >P.O. Box 9998 www: http://quark.stanford.edu
- >Stanford, CA 94309
-
- THe easiest way seems to be at WWDC. RSA were doing it for free (big lines
- when I looked though).
-
- If you can wait till next may!
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 9 Nov 1994 11:23:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Write to a File
-
- >And yes,
- > return return
- >is a legal AppleScript statement, and manages to do what one would expect.
- >And the formatting does help (if you set it up right), since the first
- >return is formatted as a language keyword, and the second as an application
- >keyword.
-
-
- Anyone for an obfuscated AppleScript contest?
-
- >
- >Once again, I'm glad I didn't write that parser! --John
-
- I think with playing with AppleScript for some time (and watching some of
- our developers fiddling with aete definitions) that the who trick behind
- the AppleScript parser is:
-
- 1. that its not context free (like most parsers except C++ or Algol 68)
-
- 2. that it tried to grab the biggest chunk it can understand in one go.
-
- Still it amazes me what it can cope with.
-
- Who wrote it? Can anyone reveal anything about the methods or ideas behind
- the parser? What are the difficulties in parsing an extensible language
- like AppleScript?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 9 Nov 1994 14:44:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Filemaker Pro & Applescript
-
- >I'm running a script in conjunction with a MacHTTP server that allows WWW users
- >to search a filemaker pro data base. It works great except if they try and
- >search for something that's not in the data base, then they get a cgi
- >application error, and the script stays on (I like my scripts to quit after
- >they're through - otherwise I get too many things going at once). I'd like to
- >return a meaningful statement when their search comes up with nothing. The
- >most
- >promising suggestion I've gotten is displayed below - still gets a cgi
- >application error. I'm sure it doesn't like the if answer = "", but this works
- >for checking to see if http_search_args are empty, so why won't it work for
- >this? And if that's not the way to do it, then how? Any suggestions?
- >
- >-----------------------------------------------
- >tell application "FileMaker Pro"
- > Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
- > Show (every Record of Window "fm_form" whose Cell 7 =
- >your_name)
- > copy Field 8 of Window "fm_form" to answer
- > Quit Application "FileMaker Pro"
- > end tell
- > if answer = "" then
- > quit
- > return http_10_header & "<H1>Sorry</H1> That name is not in my
- >l
- > ist."
- > else
- > quit
- > return http_10_header & "<H1>Here is your list!</H1><hr> " &
- >ans
- > wer
- > end if
- >------------------------------------------------
- >
- >Thanks for your time and consideration.
- >
- >Sincerely,
-
-
- What I would recommend doing, if I understand your problem, is adding an on
- error routine to trap when the is no data found (as it causes an error to
- be returned):
-
- try
-
- tell application "FileMaker Pro"
- Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
- Show every Record of Window "fm_form" whose Cell 7 = your_name)
- quit
- return http_10_header & "<H1>Here is your list!</H1><hr> " & answer
- end tell
-
- on error
- tell application "Filemaker Pro" to quit
- return http_10_header & "<H1>Sorry</H1> That name is not in my list."
- end try
- .
- .
- .
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 9 Nov 1994 11:56:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Setting file type and creator
-
- At 06:58 11/9/94, Brent Schneeman wrote:
- >I'm trying to write a script which modifies a file's type and creator code.
- >Specifically, I want to turn an un-typed file into an Excel file. I tried
- >this:
- >
- >on run
- > set FileName to (choose file)
- > set type of file FileName to "XLS4"
- > set Creator of file FileName to "XCEL"
- >end run
- >
- >and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
- >tried referring to FileName in many different ways (as text, as data, ...)
- >but still get errors. Please help me.
-
- In (Scriptable) Finder, files have the properties
- file type
- and
- creator type
-
- rather than type and Creator.
-
- Try
-
- set FileName to (choose file)
- set file type of file FileName to "XLS4"
- set creator type of file FileName to "XCEL"
-
- --John (who hasn't tried the above)
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 10 Nov 1994 09:23:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Graphic Scripting
-
- >One question: do your externals support PRINTING? I think this would be
- >an incredible addition...
-
- Funny you should ask :-). Yes, I do indeed have another set of HyperCard
- externals for doing direct Printing Manager calls. I had to work around some
- interesting flakiness in getting them to function properly--did you know that
- you have to set the current GrafPort to the printing port when you call
- PrClosePage? I couldn't find this interesting fact documented anywhere.
-
- I have successfully used them for printing custom reports for the person
- who manages after-hours room bookings on campus--she's been using the stack
- for several months now, with no problems reported. However, I recently tried
- them out on a machine with QuickDraw GX installed, and got a crash. :-(
-
- Of course, all this flakiness could be the consequence of some subtle
- interaction with HyperCard's own use of the Printing Manager...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 10 Nov 1994 09:34:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Getting an RSA key (was Re: PGP Scripts 1.0)
-
- "Robert W. Harder" <harder@ENGR.ORST.EDU> writes:
-
- >>Hey, how did getting the RSA key go.
-
- >You need three
- >forms of ID, one or two of which must be photo ID. A credit card will
- >suffice for the third. You print out a form from the digisign app which has
- >"garbage" that means something to RSA.
-
- I gather that's an encoded form of your application, using a code that is
- easy for them to OCR reliably. They want it on paper, in preference to a disk,
- to make sure they're covered legally.
-
- By the way, the fee for all this is US$25, and that applies throughout the
- entire world apart from California. (In California, you pay sales tax on top
- of that.) Of course, I got my signer at the Apple World-Wide Developer
- Conference in May, where they were giving them out for free...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Wed, 9 Nov 1994 15:24:41 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Birch <dennisb@HALCYON.COM>
- Subject: AppleScripts controlling AppleScripts
-
- I'm trying to make one AppleScript send commands to another AppleScript,
- without success. To test the possibility of doing this, I have created two
- AppleScript applications, Master and Slave.
-
- Master's script:
-
- tell application "Slave"
- run
- doOrder("This is a test.")
- end tell
-
-
- Slave's script:
-
- on doOrder(theText)
- display dialog theText
- end doOrder
-
-
- When I run Master, it apparently activates Slave, but all I get is a
- spinning ball cursor and, eventually, a timeout error from Slave. If I
- leave the "run" command out of Master's script or replace "run" with an
- "activate" command, it does not appear to activate Slave.
-
- Am I trying to do something that AppleScript can't do, or am I just going
- about it wrong?
-
- -----------------------------------------------------------------------------
- Dennis Birch
-
- E-mail: dennisb@halcyon.com
-
- Floathe Johnson
- High-Technology Advertising and Public Relations
- Home Page: http://www.floathe.com/
- =========================================================================
- Date: Wed, 9 Nov 1994 17:56:41 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Igor Livshits <igorl@UIUC.EDU>
- Subject: Multiple source files?
-
- Howdy,
-
- Coming from a tradition of small and concise C source files, I'd like to
- use multiple source files for my compiled scripts and applications. Is
- there a way I may do this with the standard AS package?
-
- Thanks!
- Igor
-
- _____
- NCSA-UIUC, e: igorl@uiuc.edu, w: (217) 244-0424; Have a Coke and a smile :)
- =========================================================================
- Date: Thu, 10 Nov 1994 13:10:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Getting an RSA key (was Re: PGP Scripts 1.0)
-
- Kevin Purcell <kevinpu@ATM.COM> writes:
-
- >Verifying PGP keys is an intereting problem which will be solved with
- >keyservers watching public transactions (like newsgroup posts and mailing
- >list posts) and associating your key with your mailing address.
-
- The RSA approach is to have your signer signed with RSA's own private key
- when it is issued. The corresponding public key is built into every copy of
- PowerTalk.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Wed, 9 Nov 1994 17:19:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Christopher Allen <ChristopherA@CONSENSUS.COM>
- Organization: Consensus Development Corporation, San Francisco, CA USA
- Subject: Re: Getting an RSA key (was Re: PGP Scripts 1.0)
-
- At 12:34 PM 11/9/94, "Lawrence D'Oliveiro, Waikato University, Hamilton, wrote:
- >By the way, the fee for all this is US$25, and that applies throughout the
- >entire world apart from California. (In California, you pay sales tax on top
- >of that.) Of course, I got my signer at the Apple World-Wide Developer
- >Conference in May, where they were giving them out for free...
-
- If you ever purchased 7.1 Pro, or System 7.5 in the US you should have
- received a coupon in the box for a free signer from RSA. The difficulty
- right now, as I understand it, is that not all international versions have
- a coupon.
-
- Also, rumor has it that if you are going to be at MacWorld SF in January
- there may be another opportunity to "walk up" with your IDs in hand and get
- a signer. I'm sure Apple and RSA will let you all know more as plans
- progress.
-
- ------------------------------------------------------------------------
- ..Christopher Allen Consensus Development Corporation..
- ..<ChristopherA@consensus.com> 4104-24th Street #419..
- .. San Francisco, CA 94114-3615..
- .. o415/647-6383 f415/647-6384..
- ..Mosaic/WWW Home Page: ..
- ..<A HREF="http://www.consensus.com:8300/">Consensus Home Page</A> ..
- =========================================================================
- Date: Wed, 9 Nov 1994 17:31:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Sys 7.5 Launcher, Windowshade
-
- > I want WindowShade to do it's thing on a
- > certain window.
-
- > Tell Application "WindowShade"
- > Shrink Window "XXX"
- > End Tell
-
- So, did anyone figure this out. I've decided having a few windows (System
- Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
- shrunk down is a good thing. However, when I reboot, I have to go through and
- manually shrink each one. Unfortunately, it appears that since WindowShade is
- a control panel scripting this may not be possible. Maybe I'll look at a
- QuicKeys solution. Can I tell QuicKeys to double-click some place?
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Wed, 9 Nov 1994 18:33:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Sys 7.5 Launcher, Windowshade
-
- >> I want WindowShade to do it's thing on a
- >> certain window.
- >
- >> Tell Application "WindowShade"
- >> Shrink Window "XXX"
- >> End Tell
- >
- >So, did anyone figure this out. I've decided having a few windows (System
- >Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
- >shrunk down is a good thing. However, when I reboot, I have to go through and
- >manually shrink each one. Unfortunately, it appears that since WindowShade is
- >a control panel scripting this may not be possible. Maybe I'll look at a
- >QuicKeys solution. Can I tell QuicKeys to double-click some place?
-
-
- Its a control panel scripting this is not possible. You cannot script a
- control panel (except for those control panels that aren;t really control
- panels or those that finder takes under its wing and does evil things at a
- low-level.
-
- You certainly could use QuickKeys to click things.
-
- Just another part of the highly integrated "shareware" OS. Were do I send
- my $10?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 9 Nov 1994 18:39:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Getting an RSA key (was Re: PGP Scripts 1.0)
-
- >Kevin Purcell <kevinpu@ATM.COM> writes:
- >
- >>Verifying PGP keys is an intereting problem which will be solved with
- >>keyservers watching public transactions (like newsgroup posts and mailing
- >>list posts) and associating your key with your mailing address.
- >
- >The RSA approach is to have your signer signed with RSA's own private key
- >when it is issued. The corresponding public key is built into every copy of
- >PowerTalk.
-
- The centralized approach versus the delocalised approach.
-
- RSA are a trusted party in this transaction.
-
- The other approach avoids a trusted party but gives some hope of verifying
- the person says who they are.
-
- THe whole issue of protocols for crypto is almost as intersting as the
- crypto alogorithms themselves -- they are often the weakset parts too.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 9 Nov 1994 22:13:17 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Sys 7.5 Launcher, Windowshade
- In-Reply-To: Your message of "Wed, 09 Nov 94 17:31:11 CST"
-
- Dennis asks...
-
- > > I want WindowShade to do it's thing on a
- > > certain window.
- >
- > > Tell Application "WindowShade"
- > > Shrink Window "XXX"
- > > End Tell
- >
- > So, did anyone figure this out. I've decided having a few windows (System
- > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
- > shrunk down is a good thing. However, when I reboot, I have to go through and
- > manually shrink each one. Unfortunately, it appears that since WindowShade is
- > a control panel scripting this may not be possible. Maybe I'll look at a
- > QuicKeys solution. Can I tell QuicKeys to double-click some place?
-
- Yes, you can tell QuicKeys to click in specific places. Let's see if I can
- remember this stuff without my Mac. You'll want to set up a long enough wait
- for the Finder to start up or you could probably kick the quickey off with
- AppleScript. You'll need to make the double-click occur on the frontmost
- window, and then you'll need to cycle the windows to bring the next one to the
- front for its double-click. If you keep the same number of windows open, you
- could wrap these steps in a repeat. Shouldn't be too hard (he says, smirking).
-
- pf
- =========================================================================
- Date: Wed, 9 Nov 1994 23:36:42 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): Sys 7.5 Launcher, Windowshade
-
- >Shouldn't be too hard (he says, smirking).
-
- It looked easy when I started out and I did get it done, but it took over an
- hour to figure out the best way. For the benefit of anyone else who might be
- considering this: BLOW OFF USING APPLESCRIPT TO DO ANYTHING OTHER THAN LAUNCH
- THE QUICKEY. I started out with the windows in my Startup items folder so
- they would always open. Then, I set up QuicKeys to simply double-click on
- each window. Since they're overlapping, QuicKeys timed out.
-
- Then I had AppleScript open each item, execute a QuicKey for each one, and go
- to the next one, etc. None of the QuicKeys got done again because they timed
- out. Plus I had the additional problem that the PowerTalk catalogs are really
- folders so for some reason they behaved differently than regular folders.
- Ultimately, I settled on one QuicKey sequence that opens the folder/catalog,
- waits 'til it appears, double clicks on it, etc. If I add more windows, I
- have to add more steps. Oh, I do have a line at the end of my startup script
- that executes this QuicKey.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Thu, 10 Nov 1994 17:53:51 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: Multiple source files?
- In-Reply-To: <199411100346.OAA22153@ariel.ucs.unimelb.EDU.AU> from "Igor
- Livshits" at Nov 9, 94 05:56:41 pm
-
- > Coming from a tradition of small and concise C source files, I'd like to
- > use multiple source files for my compiled scripts and applications. Is
- > there a way I may do this with the standard AS package?
- >
- Yes. Have a look at the chapter on script objects in the AppleScript
- Language Reference.
-
- Basically, you just save a script with a few handlers in it, and load it as
- a script object in your calling routine (myScript = load script "Foo").
- Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
- bar, bar of Foo...)
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Thu, 10 Nov 1994 17:56:53 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: AppleScripts controlling AppleScripts
- In-Reply-To: <199411100225.NAA08934@ariel.ucs.unimelb.EDU.AU> from "Dennis
- Birch" at Nov 9, 94 03:24:41 pm
-
- >
- > I'm trying to make one AppleScript send commands to another AppleScript,
- > without success. To test the possibility of doing this, I have created two
- > AppleScript applications, Master and Slave.
- >
- > Master's script:
- >
- > tell application "Slave"
- > run
- > doOrder("This is a test.")
- > end tell
- >
- >
- > Slave's script:
- >
- > on doOrder(theText)
- > display dialog theText
- > end doOrder
- >
- >
- > When I run Master, it apparently activates Slave, but all I get is a
- > spinning ball cursor and, eventually, a timeout error from Slave. If I
- > leave the "run" command out of Master's script or replace "run" with an
- > "activate" command, it does not appear to activate Slave.
- >
- Slave must be saved as 'stay-open'. It doesn't need a run command, but you
- do have to have it running to use it (open it with the Scriptable Finder,
- eg). Other than that, this should be fine.
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Thu, 10 Nov 1994 14:08:36 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dario Lopez =?iso-8859-1?Q?K=E4sten?= <cl2dlope@CLING.GU.SE>
- Subject: AS Complexity
-
- >Date: Wed, 9 Nov 1994 11:23:07 -0800
- >From: Kevin Purcell <kevinpu@ATM.COM>
- >Subject: Re: Write to a File
- >
-
- [reply-stuff deleted]
-
- >
- >I think with playing with AppleScript for some time (and watching some of
- >our developers fiddling with aete definitions) that the who trick behind
- >the AppleScript parser is:
- >
- >1. that its not context free (like most parsers except C++ or Algol 68)
- >
- >2. that it tried to grab the biggest chunk it can understand in one go.
- >
- >Still it amazes me what it can cope with.
- >
- >Who wrote it? Can anyone reveal anything about the methods or ideas behind
- >the parser? What are the difficulties in parsing an extensible language
- >like AppleScript?
- >
- >Kevin Purcell Attachmate Corp (206) 649-6489
- >kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- >
-
- Does anyone know what kind of expressive power the AS language has compared
- to other programming languages?
-
- /dario
-
-
- ____________________________________________________________________________=
- __
- Dario Lopez K=E4sten | Student of Computational Linguis=
- tics
- cl2dlope@hal.cling.gu.se | G=F6teborg University, SWEDEN
- Send e-mail to my son, | [ Macintosh Systems Consultant ]
- Put "To Felix" in the subject field | [ & Part time 4D/Mac Developer ]
- ____________________________________________________________________________=
- __
- =========================================================================
- Date: Thu, 10 Nov 1994 09:02:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: AppleScripts controlling AppleScripts
-
- >>
- >> I'm trying to make one AppleScript send commands to another AppleScript,
- >> without success. To test the possibility of doing this, I have created two
- >> AppleScript applications, Master and Slave.
- >>
- >> Master's script:
- >>
- >> tell application "Slave"
- >> run
- >> doOrder("This is a test.")
- >> end tell
- >>
- >>
- >> Slave's script:
- >>
- >> on doOrder(theText)
- >> display dialog theText
- >> end doOrder
- >>
- >>
- >> When I run Master, it apparently activates Slave, but all I get is a
- >> spinning ball cursor and, eventually, a timeout error from Slave. If I
- >> leave the "run" command out of Master's script or replace "run" with an
- >> "activate" command, it does not appear to activate Slave.
-
- Jeremy P. Howard responded:
- >Slave must be saved as 'stay-open'. It doesn't need a run command, but you
- >do have to have it running to use it (open it with the Scriptable Finder,
- >eg). Other than that, this should be fine.
-
- Jeremy is right with one small addendum: you do not have to have it
- running to for it to work. As long as the slave applet is saved as
- 'stay-open' when you issue it a command it will launch and then perform
- the command. No need to launch it from the scriptable finder. Now if the
- slave applet was on a different Mac on the network it would need to be
- running to receive the command...
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Thu, 10 Nov 1994 23:22:55 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
- Subject: Filemaker - repeating fields
- In-Reply-To: <199411100605.OAA26900@gecko.DIALix.oz.au> from "Automatic digest
- processor" at Nov 10, 94 00:01:32 am
-
- I have a FileMaker database with repeating fields in it e.g. the
- record stores a name and other details, plus a date and notes field
- which can repeat up to ten times.
-
- What AppleScript do I use to access instantiation 'n' of the repeating
- fields? I have tried a few variations with no luck. The example scripts
- for FileMaker don't appear to have any references to repeating fields.
-
- I know I have seen this one before but I can't remember it for the
- life of me!
-
- Thanks,
-
- Todd
- =========================================================================
- Date: Thu, 10 Nov 1994 09:16:11 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: AppleScripts controlling AppleScripts
-
- > I'm trying to make one AppleScript send commands to another AppleScript,
- > without success. To test the possibility of doing this, I have created two
- > AppleScript applications, Master and Slave.
- >
- > Master's script:
- >
- > tell application "Slave"
- > run
- > doOrder("This is a test.")
- > end tell
- >
- >
- > Slave's script:
- >
- > on doOrder(theText)
- > display dialog theText
- > end doOrder
- >
- > When I run Master, it apparently activates Slave, but all I get is a
- > spinning ball cursor and, eventually, a timeout error from Slave. If I
- > leave the "run" command out of Master's script or replace "run" with an
- > "activate" command, it does not appear to activate Slave.
-
- You have three alternatives:
-
- 1. Send the commands directly to a stay-open script application. The script
- application must be present at run time. If you change it, you don't need to
- recompile its clients.
-
- Server
- =====
- on foo(aParameter)
- return aParameter
- end foo
-
- on bar(aParameter)
- return reverse of characters of aParameter as string
- end bar
-
- Client
- =====
- tell application "FooBar"
- display dialog foo("foo")
- display dialog bar("bar")
- display dialog bad("bad")
- end tell
-
- 2. Add a command record parameter to the "run" handler in a stay-open script
- application, and use that parameter to create a dispatch table. The script
- application must be present at run time. If you change it, you don't need to
- recompile its clients.
-
- Server (cont...)
- ============
- on run aCmdRec
- if command of aCmdRec is "foo" then
- return foo(parameter of aCmdRec)
- else if command of aCmdRec is "bar" then
- return bar(parameter of aCmdRec)
- else
- error "Unknown command: " & command of aCmdRec
- end if
- end run
-
- Client
- =====
- tell application "FooBar"
- set theCmdRec to {command:"foo", parameter:"foo"}
- display dialog (run theCmdRec)
- set theCmdRec to {command:"bar", parameter:"bar"}
- display dialog (run theCmdRec)
- set theCmdRec to {command:"bad", parameter:"bad"}
- display dialog (run theCmdRec)
- end tell
-
- 3. Load the script into a property, then "tell" the property what to do. The
- advantage of this technique is that the FooBar script doesn't need to be
- present at run time. It is completely encapsulated within the property at
- compile time. If you change the encapsulated script, remember to recompile
- all its clients.
-
- Client
- =====
- property FooBar: load script alias "MacintoshHD:FooBar"
-
- tell FooBar
- display dialog foo("foo")
- display dialog bar("bar")
- display dialog bad("bad")
- end tell
-
- Happy scripting!
-
- David Jokinen
- Ground Zero Software
- ((GroundZero@eworld.com))
- =========================================================================
- Date: Thu, 10 Nov 1994 09:16:02 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Sys 7.5 Launcher, Windowshade
-
- >BLOW OFF USING APPLESCRIPT TO DO ANYTHING OTHER
- >THAN LAUNCH THE QUICKEY
-
- I had been trying for months to integrate AppleScript with QuicKeys, with
- lousy results. There are three basic problems:
-
- 1. QuicKeys Toolbox doesn't work as advertised via AppleScript.
- 2. QuicKeys Script is the worst scripting language ever devised.
- 3. Integration between AppleScript and QuicKeys Script is hopeless.
-
- Then I saw the light: PreFab Player. Now my AppleScripts know no limits. If
- you script, you need ths tool. It's that simple.
-
- David Jokinen
- Ground Zero Software
- ((GroundZero@eworld.com))
- ***************************************************************
- For Immediate Release
-
- Scripting breakthrough: control any application today.
-
- Somerville, MA -- August 30, 1994 -- PreFab Software, Inc. is now
- shipping PreFab Player (tm), a breakthrough product for script writers.
- Player is a faceless background application (similar to a system extension)
- that makes all applications, desk accessories and control panels scriptable.
- Like a player piano, Player mimics user input, choosing from menus and
- pop-ups, selecting items in dialog boxes and typing into documents. Player
- can also query the user interface, extracting the name of the frontmost
- window, the state of a checkbox, or even the text of an error message.
- "Applications that were once impractical to script are now very
- scriptable with Player."
- Eugene Barnes, Macintosh Tech. Support & Publishing Specialist, Allen
- Press, Inc.
-
- Player was developed by script writers for script writers. It adds verbs
- directly to UserLand Frontier (tm) and AppleScript (tm). There is no need to
- switch back and forth between the familiar scripting environment and an
- external keyboard macro program.
- "I tried to call Tempo from Frontier, but it was a nightmare. Player is
- exactly what I needed."
- James C. Schell, Assistant to the President, The Type Connection
-
- There is no separate macro language to learn; the full power of the scripting
- language and development environment is available at every step.
- "Player works like a charm. I still don't think I could use a Mac
- without QuicKeys, but for scripting, QuicKeys is out."
- Joe Sewell, founder, SoftCrafters
-
- Player includes special balloon help to identify user interface objects,
- complete documentation for the script writer, free technical support by
- e-mail and FAX, and a 60-day money-back guarantee. Player retails for $95,
- and includes a single license for Player Runtime (tm).
-
- Player Runtime is an inexpensive utility for running scripts that "play" the
- user interface: $25 for one, $20 each for 10 or more.
-
- "Script writers have been waiting a long time for a utility like Player."
- Doug Baron, co-author, UserLand Frontier
- "An important addition to your scripting arsenal."
- Donald Olson (The OSAX guy), Apple Computer, Inc.
- * * *
- Frontier and AppleScript are very different, and Player has distinct features
- that were fine-tuned for each. Player adds a custom menu to Frontier that
- gives access to:
- - on-line help text & DocServer verb reference
- - verbs that outline an application's menus or all items in a dialog
- - submenus that list all Player verbs; select one to insert the verb and
- its parameters into the frontmost script window.
-
- Player's AppleScript verbs were specifically designed to fit the object model
- philosophy, a small set of verbs applied to standard objects.
- "The AppleScript command set is very intuitive ... much easier than many
- scriptable applications."
- Doug Handy, Information Services, Mystic Seaport Museum
-
- Scripting has opened up a whole new world of possibilities on the Macintosh.
- By themselves, system-level scripting products can only control applications
- that have been enhanced with sufficient Apple event support. Only a few
- applications have added rich Apple event support, and none provides access to
- every feature that is available from the user interface. Player fills that
- critical gap.
-
- "Player totally rocks! With Player running in conjunction with Frontier,
- there is no automation task that can't be handled. You have a complete
- scripting language at your fingertips, and the power of Player extends that
- out to intimately control other applications. Multiple applications can be
- seamlessly sewn together to automatically handle complex tasks. We used
- Player in CenterStagex, our speaker support software product for corporate
- boardrooms. Player lets us automate Photoshop to acquire, anti-alias, index,
- rename and relocate whole slews of PICT files for corporate presentation
- databases."
- Chris Perkins, Senior Developer, Media Lab, Inc.
-
- "I use AppleScript to automate many of the repetitive administrative
- functions involved with my job so that I can make more time for my internal
- customers and for large projects. Player is the best bridge that I have seen
- between AppleScript and non-scriptable applications. It has already saved me
- countless hours and the monotony of many repetitive tasks!"
- Graham Breeze, Desktop Support, Raynet Corp.
- ***************************************************************
- PreFab Player
- Data Sheet
-
- The features you need
-
- menus
- - choose commands from pull-down menus, including hierarchical menus
- - ... by name, partial name or position number
- - ... optional holding one or more modifier keys
- - choose from pop-up menus
-
- dialogs
- - click buttons, select radio button options
- - check, uncheck or toggle checkboxes
- - click unnamed objects (e.g. iconic buttons) by unique ID
- - navigate file open & save dialogs
-
- keyboard
- - type text
- - enter command/shift/option/control key combinations
- - hit function keys, arrows, and other special keys
-
- mouse
- - click (usually relative to the frontmost window or dialog)
- - drag ... including through an entire sequence of locations
-
- query
- - determine if a menu, dialog item or window exists
- - get the name and attributes of menus and windows
- - find the name, value or contents of dialog items
-
- balloon help
- - shows the name, ID, type & XY location of any user interface object
-
-
- For the scripting language of your choice
-
- Frontier's UserTalk:
- with Player
- chooseMenu("File", "Page Setup")
- selectRadio("US Legal")
- acceptDialog()
-
- with Player, keys, modifiers
- typeCombination(cmd, "s")
- choosePopup("Format", "MacWrite")
- typeText(rightArrow + ".MWP")
- clickButton("Save")
-
- AppleScript:
- tell application "PreFab Player"
- do menu menu item "Page Setup" of menu "File"
- click radio button "US Legal"
- type enter
- end tell
-
- tell application "PreFab Player"
- type "s" holding command
- do menu popup item "MacWrite" of menu "Format"
- type {right arrow, ".MWP"}
- click button "Save"
- end tell
- ***************************************************************
- Player vs. QuicKeys or Tempo: Different products for different applications
- Aug. 30, 1994 by PreFab Software, Inc.
-
- PreFab Player (tm) is an add-on to Frontier or AppleScript. Player gives
- script writers control of the Macintosh user interface. In contrast,
- keyboard macro products such as QuicKeys (tm) by CE Software and Tempo (tm)
- by Affinity Microsystems are stand-alone programs aimed at non-scripters.
-
- While it is possible to call a macro program from a script, it can be awkward
- and tedious. Every little change requires switching to the macro utility,
- locating the right macro, navigating a series of nested dialogs to make the
- necessary corrections, and finally returning to Frontier or AppleScript.
- With Player, just type a simple verb. Scripts can mix Apple event based
- verbs with verbs that "play" the user interface. Create, edit and debug
- scripts without leaving your familiar scripting environment.
-
- Over time, QuicKeys and Tempo have each added "programming" constructs for
- looping, branching, and conditional execution. CE Software also added
- QuicKeys Script, their own special-purpose OSA-compliant language. None of
- these attempts comes close to matching the simplicity and power of the
- system-level scripting languages, whether the friendly version of traditional
- constructs in Frontier's UserTalk, or the English-like syntax of AppleScript.
- Player adds to these languages rather than attempting to duplicate their
- functionality.
-
- Many scripts are written for use by others, whether clients, customers,
- network users, or just friends and colleagues. Neither QuicKeys nor Tempo
- offers a simple, automatic way to install a new or updated macro on someone
- else's machine. For the script writer, Player couldn't be simpler: just
- ensure that Player or Player Runtime is correctly installed in the Extensions
- folder. There are no separate macros to worry about, everything is in the
- AppleScript or Frontier script file.
-
- * * *
- Player does not completely replace QuicKeys or Tempo. These keyboard macro
- products allow the user to create keyboard shortcuts for user actions.
- Player does not. (Of the many ways to initiate a Frontier script or
- AppleScript, both Menu Sharing and OSA Menu support custom command-keys.)
- QuicKeys and Tempo both include a collection of special-purpose extensions
- for such tasks as interacting with the clipboard, bypassing the chooser,
- dialing the telephone, etc. Player's sole purpose is to "play" the user
- interface. (Many of these features are available as Frontier-callable UCMDs
- or XCMDs, or AppleScript OSAX extensions.)
-
- The current version of Player is not recordable. As of this writing, very
- few scriptable applications are recordable, so most script writers are
- accustomed to typing the verbs and parameters.
-
-
- Summary
-
- QuicKeys and Tempo: unique features
- - record user actions
- - define custom keyboard shortcuts
- - extensions for bypassing control panels, etc.
-
- Player: unique features
- - adds verbs to Frontier or AppleScript
- - special balloon help to identify user interface objects
- - documentation and tech support aimed at script writers
-
- Player: benefits
- - completely integrated into your scripting environment
- - much easier to install new and updated scripts on other machines
- - inexpensive runtime version
- - smaller footprint (200K of RAM)
-
-
- What our customers say
- "Player works like a charm. I still don't think I could use a Mac without
- QuicKeys, but for scripting, QuicKeys is out."
- Joe Sewell, founder, SoftCrafters
-
- "I used to use QuicKeys together with Frontier to control non-scriptable
- applications. It was awkward, clumsy, often unreliable, but it was all I
- had. With Player, I control the user interface of non-scriptable apps from
- within Frontier. No additional application to run; no external macros to
- complicate debugging and installation. Everything is done with one scripting
- language making it clean, uncluttered, and much more reliable."
- Eugene Barnes, Macintosh Tech Support & Publishing Specialist, Allen Press,
- Inc.
-
- "I tried to call Tempo from Frontier, but it was a nightmare. Player is
- exactly what I needed."
- James C. Schell, Assistant to the President, The Type Connection
-
- "While I continue to use Tempo for my own, day-to-day shortcuts, I have found
- Player to be better for automating unattended systems. Since I can control
- non-scriptable applications with Player using only Frontier's UserTalk
- language, my scripts are simpler, more reliable and maintainable, and easier
- to document. I can develop scripts for new tasks more quickly, too."
- Computing Support Manager, large aerospace firm
- ***************************************************************
- PreFab Software, Inc. was founded to meet the emerging demand for
- scripting tools, automation utilities and "pre-fabricated software
- components".
-
- PreFab Player, Player Runtime, and PreFab Software are trademarks of PreFab
- Software, Inc.
- All other product and company names are trademarks or registered trademarks
- of their respective holders.
-
- This document is intended to be honest and informative. Please bring any
- errors, omissions, or suggestions to our attention.
-
- PreFab Software, Inc. * 34 Bartlett St. * Somerville, MA * 02145
-
- Inquiries & Orders: 617-628-9025 (24 hour)
- FAX: 617-628-9043
- VoiceMail: 617-628-9555
- CompuServe: 70214,424
- Internet: player@prefab.com
- =========================================================================
- Date: Thu, 10 Nov 1994 13:58:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Filemaker - repeating fields
- In-Reply-To: <no.id> from "Todd Hooper" at Nov 10, 94 11:22:55 pm
-
- --Todd Hooper wrote:
- >
- >What AppleScript do I use to access instantiation 'n' of the repeating
- >fields? I have tried a few variations with no luck. The example scripts
- >for FileMaker don't appear to have any references to repeating fields.
-
- Well, you kind of can't access item n of a repeating field. What you
- will need to do is get all of the elements of the repeating field as a
- list and then work on the elements of the list in AppleScript. When your
- done making changes to the list to put the new list back into the
- repeating field.
-
- -Hades
- =========================================================================
- Date: Thu, 10 Nov 1994 22:51:08 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Marc Bizer <bizer@CLIPPER.ENS.FR>
- Subject: drag and drop application for changing creator code
-
- Hi everyone,
- I was interested in the question about how to write a script that
- would change a file's creator code, but I do that a lot. I'd like to make a
- script-application onto which I can drop files to change their creator
- codes, but nothing I do seems to produce the icon with the downward arrow
- that the drop-compatible app should have (my app also doesn't allow me to
- drop on it). What am I doing wrong? I know that this is a stupid question,
- but I haven't received the Tao of AppleScript yet.-:)
- Attached is my script.
- Many thanks,
- Marc
-
- on run
- tell application "Finder"
- activate
- set theFile to selection
- set file type of file theFile to "TEXT"
- set creator type of file theFile to "R*ch"
- end tell
- end run
- =========================================================================
- Date: Thu, 10 Nov 1994 17:00:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: drag and drop application for changing creator code
- In-Reply-To: <no.id> from "Marc Bizer" at Nov 10, 94 10:51:08 pm
-
- --Marc Bizer wrote:
- >
- > I was interested in the question about how to write a script that
- >would change a file's creator code, but I do that a lot. I'd like to make a
- >script-application onto which I can drop files to change their creator
- >codes, but nothing I do seems to produce the icon with the downward arrow
- >that the drop-compatible app should have (my app also doesn't allow me to
- >drop on it). What am I doing wrong? I know that this is a stupid question,
- >but I haven't received the Tao of AppleScript yet.-:)
-
- It's a basic question, but it's one that is very easy to miss. This
- is basically what your script should look like:
-
- on open theFiles
- tell application "Finder"
- repeat with f in theFiles
- set file type of file f to "TEXT"
- set creator type of file f to "R*ch"
- end repeat
- end tell
- end open
-
-
- It's the "on open theFiles" that tells the Script Editor that you
- want to create a droplet instead of an applet. Any script with an "on
- open" handler will default to saving as a droplet is you choose to save
- it as an application. The "on run" and "on idle" handlers will default
- to applets. It's important to note that the "on open" handler seems to
- take precedence over the other two because if you save a script that
- contains an "on open" and one or more of the others it will default to a
- droplet. But you will still be able to simply double click on it, as
- well.
-
- -Hades
- =========================================================================
- Date: Thu, 10 Nov 1994 16:24:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: new on gaea
-
- Everyone,
-
- You'll find Preston Holmes' much discussed PGP scripts in
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/PGP_Scripts_1.0.sit.hqx
-
- You might also want to check out the XCMD Shell in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/XCMDShell0.1b3.sit.hqx
-
- XCMD Shell is an application which allows you to call XCMD's from AppleScript
- without running HyperCard. XCMD Shell is much faster than running HyperCard,
- and it is distributable with your AppleScripts for nothing. This version fixes
- some memory problems the earlier version had.
-
- Enjoy,
-
- pf
- =========================================================================
- Date: Thu, 10 Nov 1994 14:44:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: drag and drop application for changing creator code
-
- >Hi everyone,
- > I was interested in the question about how to write a script that
- >would change a file's creator code, but I do that a lot. I'd like to make a
- >script-application onto which I can drop files to change their creator
- >codes, but nothing I do seems to produce the icon with the downward arrow
- >that the drop-compatible app should have (my app also doesn't allow me to
- >drop on it). What am I doing wrong? I know that this is a stupid question,
- >but I haven't received the Tao of AppleScript yet.-:)
- > Attached is my script.
- > Many thanks,
- > Marc
- >
- >on run
- > tell application "Finder"
- > activate
- > set theFile to selection
- > set file type of file theFile to "TEXT"
- > set creator type of file theFile to "R*ch"
- > end tell
- >end run
-
- You need an open handler to make a droplet. This handler needs one
- parameter which is list of aliases to the files dropped on the droplet.
-
- The script fragment
-
- on open theFilelist
- repeat with theItem in theFilelist
- ...
- do something to the item
- ...
- end
- end
-
- is something of an AppleScript idiom.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 11 Nov 1994 11:59:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: "Get Terminology" event question
-
- Hi all.
-
- I'm working on a new version of EightyLister (patience, patience!). One of the
- new features I'm trying to provide is the option to get an application's
- terminology by sending them a "get terminology" event, rather than just by
- opening the application file directly. This would be useful for applications
- which have dynamic terminologies.
-
- Trouble is, I don't think I've got a proper understanding of how the AppleScript
- "get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
- is a document called "AppleScript Suite". This describes the get terminology
- event, but doesn't say that there are any parameters for it. So how do you
- specify what language code and script code you want the terminology for?
-
- The only application I've got at home with dynamic terminology is the
- Scriptable Finder. When I try sending it a get terminology event, I get an
- error saying some parameter is missing.
-
- Can anybody shed some light on this? Thanks if you can.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 10 Nov 1994 04:13:39 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Thomas C. O'Brien" <tomo@UCLINK.BERKELEY.EDU>
- Subject: Scriptable Telnet App?
-
- Does anyone know of a scriptable Telnet App?
-
- Thanks,
-
- Tomo
-
- tomo@uclink.berkeley.edu
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Thomas C. O'Brien
- Instructional Technology Coordinator
- Academic Achievement Division
- 2515 Channing Way
- UC Berkeley
- Berkeley CA 94720
-
- <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
- tomo@uclink.berkeley.edu</a>
- (510) 643-9569
- =========================================================================
- Date: Thu, 10 Nov 1994 16:27:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jerry Ballard <gqb@FARALLON.COM>
- Subject: Re: Scriptable Telnet App?
-
- Vicom
- 604-684-9517 voice
- 604-684-9519 fax
-
- I'd also assume you can do Telnet thru Microphone...
-
- Here's the Vicom dictionary...
-
- Required Suite: Events that every application should support
-
- open: Open the specified object(s)
- open alias -- list of objects to open
-
- print: Print the specified object(s)
- print alias -- list of objects to print
-
- quit: Quit application
- quit
-
- run: Sent to an application when it is double-clicked
- run
-
- VICOM events: Additional events supported by VICOM
-
- Send Message: Sends a message to a running macro
- Send Message string
- [params string] -- Parameters which are passed to the macro
- [to window string] -- Window to send the message to
- [async constant] -- Script continues without waiting for the m
- acro to
- terminate
- [Result: anything]
-
- Do Script: Execute a VICOM script
- Do Script alias -- The name of the file containing the script
- [params string] -- Parameters which are passed to the macro
- [in window string] -- Window to run the macro in
- [async constant] -- Script continues without waiting for the m
- acro to
- terminate
- [Result: anything]
-
- Connect to: Connects to a service
- Connect to string -- Name of the service to connect to
-
- GetGlobal: Returns a value of a VICOM global variable
- GetGlobal string -- Name of the variable
- Result: anything
-
- SetGlobal: Sets a value of a VICOM global variable
- SetGlobal string -- Name of the variable
- to anything -- value to set the variable to
-
-
- _______________________________________________________________________________
-
-
- Does anyone know of a scriptable Telnet App?
-
- Thanks,
-
- Tomo
-
- tomo@uclink.berkeley.edu
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Thomas C. O'Brien
- Instructional Technology Coordinator
- Academic Achievement Division
- 2515 Channing Way
- UC Berkeley
- Berkeley CA 94720
-
- <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
- tomo@uclink.berkeley.edu</a>
- (510) 643-9569
- =========================================================================
- Date: Thu, 10 Nov 1994 21:57:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Atul Butte <atul@NETCOM.COM>
- Subject: Re: Scriptable Telnet App?
-
- >Does anyone know of a scriptable Telnet App?
- >
- >Thanks,
- >
- >Tomo
-
- My TCP/IP Scripting Addition includes a Telnet sample script... you can
- modify it to do whatever you'd like during a telnet session.
-
- You can find it at gaea.kgs.ukans.edu, in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-unreg-1.1.2.sea.hqx
-
- or on any infomac mirror, in:
-
- [Archived as /info-mac/dev/tcp-ip-112-osax.hqx; 1027K]
-
- Let me know if you have any questions on using it or customizing it...
-
- -- Atul
-
-
-
- +----------------------------------------------------------------------
- | Atul Butte
- | President, Mango Tree Software
- | Box 41119
- | Providence, RI 02940
- | 401-942-6882
- |
- | atul@netcom.com
- =========================================================================
- Date: Thu, 10 Nov 1994 19:08:41 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Filemaker - repeating fields
-
- Hi Todd,
-
- I've written an applet/Filemaker package called List Processor that works
- around some of the problems of dealing with repeating fields. The reason it's
- called List Processor is that Filemaker Pro repeating fields are returned to
- AppleScript as lists of strings if you get data on a field of one record.
-
- For example, in a mythical database containing one repeating field with five
- repetitions in one record, the following would happen:
-
- Get Data Field 1 of database 1
- => {"1", "2", "3", "4", "5"}
-
- Get Data Cell 1
- => {"1"} -- same as item 1 of the result returned by the first event
-
- Get Data Cell 2
- => {"2"} -- same as item 2 of the result returned by the first event
-
- If you had two records, the following would happen:
-
- Get Data Field 1
- => {{"1", "2", "3", "4", "5"}, {"6", "7", "8", "9", "10"}}
-
- You also need to review the object containment stuff in the "Filemaker and
- Apple Events" database. Get Data Field gets all values in all records (either
- in the found set or in the entire database). Get Data Cell gets only the
- value in a specified field in a specified record. Doing this on a repeating
- field gets only one repetition.
-
- As for the other stuff in List Processor, which I need to send to the FTP
- site, the package demonstrates running AppleScript scripts from scripts and
- buttons in an example database. Examples include, appending single fields to
- the beginning or end of repeating fields, combining values in two repeating
- fields into a third repeating field (allowing you to specify which comes
- first or last), getting values from single fields in one database and putting
- them into a repeating field in another database, sorting items in individual
- repeating fields alphabetically, by date or numerically, sorting repeating
- fields in groups (so that individual lines stay together after sorting) with
- multiple sort keys, and deleting lines of multiple repeating fields based on
- the value selected in a radio button. Whew!
-
- I'll send it to the ftp site either tonight or tommorow. I think it's worth
- looking at because it has some good examples of using AppleScript to
- manipulate repeating fields.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 10, 1994 ------
-
- I have a FileMaker database with repeating fields in it e.g. the
- record stores a name and other details, plus a date and notes field
- which can repeat up to ten times.
-
- What AppleScript do I use to access instantiation 'n' of the repeating
- fields? I have tried a few variations with no luck. The example scripts
- for FileMaker don't appear to have any references to repeating fields.
-
- I know I have seen this one before but I can't remember it for the
- life of me!
-
- Thanks,
-
- Todd
- =========================================================================
- Date: Fri, 11 Nov 1994 01:13:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
- Subject: Re: GNU diff droplet
-
- Fred Terry <pfterry@lks.csi.com> wrote:
- > Tom Pollard has contributed a GNU diff droplet script that I have moved into
- >
- > ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
- >
- [...]
- > file-comparison utility. Be sure to read the Read Me file.
-
- Since it's not archived on gaea separately, here's a copy of the Read
- Me, to give you a better idea of whether this package is going to be
- useful to you or not. I've been using it in more or less its present
- form for the last six or seven months, now.
-
- Cheers,
-
- Tom
-
-
- -----------------------------------------
- AppleScript/QuicKeys droplet for GNU diff
- -----------------------------------------
-
- "GNU diff" is an AppleScript droplet that acts as a "user-friendly"
- wrapper for "diff", the Unix file-comparison utility. QuicKeys 3.0
- is used to drive the actual application. A number of Applescript
- extensions are used, in particular the "Regular Expressions" and "Choose
- Files & Folders" extensions from Mark Alldritt's Script Tools Suite.
-
- --- Installation
-
- To use "GNU Diff", it's only necessary that the "GNU Diff" droplet is in
- the same folder as the rsrcs folder, which holds the "diff" application,
- the dialog window definition and the on-line help file. Also, make sure
- that you've installed required scripting additions. The Script Tools
- Suite is available from many places, including the info-mac archives and
- the scripting archives at 'gaea.kgs.ukans.edu'. You'll probably want to
- put an alias of the GNU diff droplet somewhere where it's easy to drop
- files on it.
-
- --- Why?
-
- I put this together because I know of no other drop-launchable
- application that reports the differences between two files or two
- folders. The available shareware/freeware utilities (Compare-0.9,
- Compare-All, TCXDiff) all have interfaces that are awkward to use for
- multiple file comparisons. Also, I like and understand the format in
- which "diff" reports its results, but none of the other applications
- supports this.
-
- --- Description
-
- "Diff" is a simple port of the corresponding Gnu utility to the Mac by
- Timothy Murphy of Trinity College Dublin <tim@maths.tcd.ie>; it and its
- source code are ftpable from ftp.maths.tcd.ie. It's based on version
- 2.0 of "diff". While functional, its only user interface is
- unfortunately the Think C console i/o dialog. :-( This means, for
- instance, that the input file names have to be typed in to the dialog
- window, with full path names if they're in a different directory from
- the application!
-
- My Applescript droplet hides this abomination by offering a drop-launch
- interface and a (more) friendly dialog for specifying the input and
- output files and the command line options. QuicKeys is used to launch
- the actual application and paste in the command-line arguments that were
- prepared by Applescript. I think it's a good example of how the two
- systems can be used together to script otherwise unscriptable apps.
-
- Although it could be improved, it's now possible to get the diffs of two
- files (a control file and a comparison file) by dropping them on the
- "GNU diffs" app. There's an option to switch the order of the file
- arguments; this is useful since you don't have any control of the order
- in which the files are given to the app when drop-launching. I haven't
- tested all of the many features of the underlying Unix application, but
- those I have tried seem to do what you'd expect them to.
-
- Particularly nice is the ability to drag two folders onto the droplet
- and get comparisons of all matching files in the two.
-
- Online help for the diff command-line options is provided by opening a
- QuicKeys text editor window with the help file, taken largely from the
- info file distributed with the current GNU version of diff. Additional
- documentation for the app is available in the included copy of the Sun
- man pages for diff (sorry if these don't correspond exactly to the
- version that Timothy Murphy ported).
-
- --- Wishlist
-
- Right now, the dialog resource is kept in a separate file. It would be
- better to put it directly into the Applescript droplet, but the Script
- Editor seems to destroy it if you make and save any changes to the script.
- Second, it would be nice to offer a more user-friendly way of choosing
- command-line options, such as a big panel of buttons or a list dialog.
- Finally, I'd prefer to avoid the QuicKey'ing the file i/o dialog
- altogether, but there's no good way to specify the output file for diff using
- only QuicKeys and Applescript (suggestions?).
-
- --- Disclaimer
-
- While it's reasonably bomb-proof on my own system, a Q610 running system
- 7.1 with Applescript 1.1 and QuicKeys 3.0, there can't be any guarantees
- about its stability on any other machine. Any suggestions, gripes and
- especially improvements will be gratefully accepted.
-
- I have a similar droplet for the complementary application, 'patch', but
- it still hasn't been updated to work under AppleScript 1.1. It wouldn't
- take more than a morning, but since it hasn't turned out to be all
- that important for me, it hasn't been done yet. If anyone wants it in
- its current form, they're welcome to it.
-
- My meager contributions to this package are public domain. "Diff" is,
- in principle, "Free Software", and Mark Alldritt's scripting additions
- are freely useable but copyrighted (right?).
-
- Hope this is useful to someone besides me :-)
-
- Tom Pollard
- Nov 5, 1994
-
- -------------------------------------------------------------------------------
- W. Thomas Pollard Department of Chemistry
- pollard@cucbs.chem.columbia.edu Columbia University
- -------------------------------------------------------------------------------
- =========================================================================
- Date: Fri, 11 Nov 1994 01:08:38 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lloyd <100046.3512@COMPUSERVE.COM>
- Subject: Scripting WindowShade
-
- Scripting WindowShade...
-
- > So, did anyone figure this out. I've decided having a few windows (System
- > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
- > shrunk down is a good thing. However, when I reboot, I have to go through and
- > manually shrink each one. Unfortunately, it appears that since WindowShade is
- > a control panel scripting this may not be possible. Maybe I'll look at a
- > QuicKeys solution. Can I tell QuicKeys to double-click some place?
-
- I saw this, and thought, this is a neat idea.
- I came up with this:
-
- tell application "Finder"
- activate
- copy windows to x
- copy (count of windows) to numWindows
-
- repeat with i from 1 to numWindows
- copy bounds of window i to theBounds
- copy ((item 1 of theBounds) + 30) to itemOne
- copy ((item 2 of theBounds) - 10) to itemTwo
- AutoClick {itemOne, itemTwo}
- AutoClick {itemOne, itemTwo}
- AutoClick {itemOne, itemTwo}
- end repeat
-
- end tell
-
- Unfortunately you can only get the Autoclick osax once you've registered
- the Autotype osax (only a fiver). Auto click simulates the mouse-
- it clicks at the coordinates as given in its parameters.
- There are three clicks, one to activate the window and a double click.
- For some reason, a double click on its own did not work as it should.
-
- See that it also requires the scriptable Finder.
-
- I saved this script as an application
- and put it in my startup folder and it works as expected.
-
- Dave L.
- =========================================================================
- Date: Thu, 10 Nov 1994 22:40:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >
- >I don't think I've got a proper understanding of how the AppleScript
- >"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
- >is a document called "AppleScript Suite". This describes the get terminology
- >event, but doesn't say that there are any parameters for it. So how do you
- >specify what language code and script code you want the terminology for?
- >
- >The only application I've got at home with dynamic terminology is the
- >Scriptable Finder. When I try sending it a get terminology event, I get an
- >error saying some parameter is missing.
-
- The direct parameter is a long which describes what language you want the
- terminology in. Basically, it is simply the script code shifted left 8
- bits with the country code added into the low byte. This is,
- coincidentally, the resource id of the aete that you want.
-
- For English, this is 0. French is 1. Japanese has two, 11 for Romanji and
- 267 for Kanji.
-
- Jon
- =========================================================================
- Date: Thu, 10 Nov 1994 22:40:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Multiple source files?
-
- >> Coming from a tradition of small and concise C source files, I'd like to
- >> use multiple source files for my compiled scripts and applications. Is
- >> there a way I may do this with the standard AS package?
- >>
- >Yes. Have a look at the chapter on script objects in the AppleScript
- >Language Reference.
- >
- >Basically, you just save a script with a few handlers in it, and load it as
- >a script object in your calling routine (myScript = load script "Foo").
- >Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
- >bar, bar of Foo...)
-
- An alternative, which is not simply the AppleScript package, is to use my
- ScriptServer application and Leonard's OSA Menu to run an AppleScript which
- will combine several files (ala #include) and compile the resulting file.
- I have included a simple example script with ScriptServer, but I've left
- the #include as an exercise for the reader.
-
- If anyone wants to send me a script that does includes, I'll put it into
- the ScriptServer package. Otherwise it has to wait until I get some time
- to write it, which ain't going to happen any time soon because I just got a
- couple of Newtons and won't be having much free time until I get them doing
- everything the way I want them too. ;)
-
- Jon
- =========================================================================
- Date: Thu, 10 Nov 1994 22:57:47 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Tricky problem using date comparison
-
- Here's the problem:
-
- I have a script which I want to do a date comparison. The problem is that I
- have to do this date comparison on a chunk of data I get within a loop
- while talking to another app. This app has its own definition of what
- 'date' means and refuses to work. Here's a simple example:
-
- This works:
- ----------
- set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
- set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
- ^ ^
- | |
-
-
- This does not work:
- -------------------
- tell application "Eudora"
- repeat (for a whole bunch of messages)
- set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- ^
- | (this line works
-
- set diff to (date TheDate) - (date "Monday, October 31, 1994")
- ^ ^
- | | (this line won't)
-
- if diff meets some criteria
- munge the message
- end if
-
- end repeat
- end tell
-
-
- Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
- using Eudora's definition of the term 'date' and not Applescripts. I can't
- very well jump out of Eudora (end tell) because I'm right in the middle of
- a repeat loop and I have to get assign the value of diff from criteria I
- grab from Eudora. There must be some easy work around for this one. Can
- some expert enlighten me?
-
- How about Jon P.? Do you think you could stop writing cool OSAXen for the
- *whole* AppleScript community and take time out to spoon feed me
- AppleScript basics? :)
-
-
-
- -- Michael
-
-
- _____________________________________________________________________________
- Michael Robertson - MR Mac (619) 534-5107 office
- Macintosh Business Consultant (619) 989-8943 pager
- San Diego Supercomputer Ctr. (619) 534-5152 fax
-
- Internet, America Online robertso@sdsc.edu
- _____________________________________________________________________________
- =========================================================================
- Date: Fri, 11 Nov 1994 03:17:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: OSAXen DB
-
- I've placed in the incoming directory of gaea a FileMaker Pro database of
- all the scripting additions I could find lying around on my hard-drives.
- There are over 300 commands, including syntax. See the readme enclosed for
- notes on its weaknesses and possible confusions.
-
- Barry
- bchern@freenet.columbus.oh.us
- =========================================================================
- Date: Fri, 11 Nov 1994 10:49:56 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Tricky problem using date comparison
-
- > I have a script which I want to do a date comparison. The problem is that I
- > have to do this date comparison on a chunk of data I get within a loop
- > while talking to another app. This app has its own definition of what
- > 'date' means and refuses to work. Here's a simple example:
- >
- > This works:
- > ----------
- > set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
- > set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
- <snip,snip>
- > This does not work:
- > -------------------
- > tell application "Eudora"
- > repeat (for a whole bunch of messages)
- > set TheDate to date of message x of mailbox boxToCheck of mail folder
- ""
- > ^
- > | (this line works
- >
- > set diff to (date TheDate) - (date "Monday, October 31, 1994")
- > ^ ^
- > | | (this line won't)
- >
- > if diff meets some criteria
- > munge the message
- > end if
- >
- > end repeat
- > end tell
-
- Seems like you could do the following though:
-
- repeat (for a whole bunch of messages)
- tell application "Eudora"
- set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- end tell
-
- set diff to (date TheDate) - (date "Monday, October 31, 1994")
-
- tell application "Eudora"
- .... .more stuff
- end tell
-
- > How about Jon P.? Do you think you could stop writing cool OSAXen for the
- > *whole* AppleScript community and take time out to spoon feed me
- > AppleScript basics? :)
-
- Yeah, Jon, Get a life! .... ;-)
-
- cheers,
- -waybe
- =========================================================================
- Date: Fri, 11 Nov 1994 08:56:17 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: OSAXen DB
- In-Reply-To: Your message of "Fri, 11 Nov 94 03:17:12 EST"
-
- Everyone,
-
- >I've placed in the incoming directory of gaea a FileMaker Pro database of
- >all the scripting additions I could find lying around on my hard-drives.
- >There are over 300 commands, including syntax. See the readme enclosed for
- >notes on its weaknesses and possible confusions.
-
- You'll find Barry's database in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/OSAXenDB.sit.hqx
-
- You'll also find the latest versions of Aladdin's DropStuff and StuffIt
- Expander in
-
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/DropStuff_with_EE_3.5.2_Ins
- taller.hqx
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/StuffIt_Expander_3.5.2_Inst
- all.hqx
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Fri, 11 Nov 1994 09:05:08 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: MacPGP scripts?
-
- Subject: Time:8:57 AM
- OFFICE MEMO MacPGP scripts? Date:11/11/94
- >From the title of several recent messages about Eudora and MacPGP I'm assuming
- that the latter is scriptable. Looking at it in ResEdit though I find that it
- has no 'aete' resource for Frontier to sift through. Nor does Gaea's index list
- any scripts for it. So the questions are:
- 1) Is MacPGP really scriptable?
- 2) Does anyone have any scripts for it they'd be willing to upload to Gaea?
-
- Thanks,
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- =========================================================================
- Date: Fri, 11 Nov 1994 10:46:08 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Tricky problem using date comparison
-
- >This app has its own definition of what
- >'date' means and refuses to work.
-
- I don't have Eudora to see how it handles dates, but I once ran into
- something like this with the offset command. Rather than break up my main
- script, I sent the job to a subroutine, which was governed by AppleScript
- alone, returning any necessary data (a boolean, in your case) to the main
- script.
-
- Danny Goodman
- =========================================================================
- Date: Fri, 11 Nov 1994 08:27:59 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Scripting WindowShade
-
- Here's another version of the "Toggle WindowShade" script.
-
- property pClickPoint : {0, -1}
- property pClickTimes : 2
-
- on run
- tell application "Finder"
- activate
- repeat with iWindow in windows
- open iWindow
- tell application "PreFab Playerx"
- click location pClickPoint times pClickTimes
- end tell
- end repeat
- end tell
- end run
-
- I requires the Scriptable Finder and PreFab Player.
-
- David Jokinen
- Ground Zero Software
- =========================================================================
- Date: Fri, 11 Nov 1994 08:32:17 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Tricky problem using date comparison
-
- >This does not work:
- >-------------------
- >tell application "Eudora"
- > repeat (for a whole bunch of messages)
- > set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- > ^
- > | (this line works
- >
- > set diff to (date TheDate) - (date "Monday, October 31, 1994")
- > ^ ^
- > | | (this line won't)
- >
- > if diff meets some criteria
- > munge the message
- > end if
- >
- > end repeat
- >end tell
-
- Since tell blocks don't persist across handler calls, you could stick your
- date calculation in a separate handler:
- ***
- tell application "Eudora"
- repeat ...
- do somthing with theDate...
- set diff to CalcDiff(theDate)
- do some more stuff with theDate...
- end repeat
- end tell
-
- on CalcDiff(aDate)
- return aDate - (date "Monday, October 31, 1994")
- end CalcDiff
- ***
- David Jokinen
- Ground Zero Software
- =========================================================================
- Date: Fri, 11 Nov 1994 12:11:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Daniel Berlinger <Daniel@CIRCUMTECH.COM>
- Subject: Re: MacPGP scripts?
-
- --part_AAE90FEE0009B19400000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- > 1) Is MacPGP really scriptable?
-
- The unofficial version 2.6 universal which was released with the same
- "limitations" as other unliscensed version has the aete resource. It is my
- understanding that MIT is adding scripting to the official version and have
- decided to wait for that.
-
- Additionally, the 2.6 version will not read versions older than 2.3, I
- believe, but the universal version does.
-
- Daniel
-
- --part_AAE90FEE0009B19400000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- Daniel Berlinger Daniel@circumtech.com
- "I wasn't thinking...
- ...obviously this doesn't matter to my point."
- Administrator of Information Systems Circumstance Technology
- --part_AAE90FEE0009B19400000002--
- =========================================================================
- Date: Fri, 11 Nov 1994 11:35:38 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: String to Record Class
-
- Greetings-
-
- I have an html form running on a web that writes information out to a file.
- As you may know this information is tagged with a field name. This got me
- thinking about applescripts record class so I munged the data it writes to
- the file to look just like a record - example
- {firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- to read that data back in at a later time and have applescript see it as a
- record class object. When you read the file of course you get a string -
- can you coerce this string to a record? The simple - newData as record -
- does not seem to work. Any ideas.
-
- Best-
-
- Greg
-
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Greg Hiner (512) 471-7134 ext.82
- Computer Support hiner@mail.utexas.edu
- Garrison Hall 318
- University of Texas at Austin
- Austin, TX 78712
- =========================================================================
- Date: Fri, 11 Nov 1994 11:45:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Script Editor Clicking Inaccurate
-
- Hello,
-
- Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- 7.5? Selecting text in the editor isn't accurate and I'm getting a little
- frustrated. I have to click close to some text and cursor over to select what
- I want. Clicking is off by one or two characters and its a real problem. I
- didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- file over from the old System. Could this have something to do with this
- problem?
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Fri, 11 Nov 1994 19:28:19 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Christoph Dohrmann <cd@GUIDO.ZKM.DE>
- Subject: Eudora "SaveAs" and other menues
-
- For some reason I need to save my messages into ASC Files (alfa) after I
- used the menu "Edit|Wrap selection" to limit line length...
- Online I can do this using the appropriate menues...
- I would like to automate this and some more work I need to do in advance with -
- you guessed it - Applescript.
-
- Since I need only the body (field "" of message 0) I could copy this and
- write it into a file using the FileI/O osax.
- BUT I thought about using the "save" command that is included with eudora's
- core suite... which syntax is described as
-
- >save: Save an object
- > save reference -- the object to save
- > [in alias] -- the file in which to save the object
- > [as type class] -- the file type of the document in which to save...
-
-
-
- telling Eudora to
-
- > save field "" of message 0 in "TESTFILE" as text
-
- results in a
-
- >> "field "" does not understand the save message..."
-
- Any Ideas....
-
- Than_ in advance
- .
- .
- .
- .
- X
- =========================================================================
- Date: Fri, 11 Nov 1994 10:36:18 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chuck Pliske <chuckp@U.WASHINGTON.EDU>
- Subject: Re: MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
-
- I have been trying to use the boolean file properties but they don't seem to
- work:
-
- on open xyzzy
- tell application "Finder"
- repeat with f in xyzzy
- if the folder of f then
- ...
- end if
- end repeat
- end tell
- end open
-
- The dictionary sez there are a few of these: locked (which works), and alias
- and folder (which don't seem to work)
-
- An apple example (synchronize folders) uses the (f as text) and looks for a
- trailing ":" to indicate a folder, but it seems as though there is a testable
- property.
-
- Am I doing something wrong?
-
- thanks,
-
- Chuck
-
- This mail courtesy of Apple's System 7.5 and StarNine's Internet Gateway
- =========================================================================
- Date: Fri, 11 Nov 1994 11:02:14 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
-
-
- I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
- back from an Apple test engineer asking how to repro it. I sent a really
- detailed bug report (including step by step instructions) and I think they
- then reproed it and sent it onto engineering.
-
- In my case it only happened on a Power Mac (any model) with System 7.5 with
- the WorldScript Power Adaptor extension loaded. The offset seemed related
- to the number of style changes in a line of text. Removing the WorldScript
- Power Adaptor extension solved the problem, but TextEdit is then as slow as
- hell.
-
- This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 11 Nov 1994 19:36:19 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Eudora script upload
-
- I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
- automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
- this is of interest. I'll appreciate any and all suggestions, comments,
- etc. If anyone can tell me how to move the insertion point in a Eudora msg
- body, I'll do an improved version right away.
- =========================================================================
- Date: Fri, 11 Nov 1994 14:47:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: String to Record Class
-
- >I have an html form running on a web that writes information out to a file.
- >As you may know this information is tagged with a field name. This got me
- >thinking about applescripts record class so I munged the data it writes to
- >the file to look just like a record - example
- >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >to read that data back in at a later time and have applescript see it as a
- >record class object. When you read the file of course you get a string -
- >can you coerce this string to a record? The simple - newData as record -
- >does not seem to work. Any ideas.
- >
- > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- > Greg Hiner (512) 471-7134 ext.82
- > Computer Support hiner@mail.utexas.edu
- > Garrison Hall 318
- > University of Texas at Austin
- > Austin, TX 78712
-
- Greg,
- What it sounds like you want is a string of records:
-
- set a to {{Name:"Mark",Address:"hadfield@sickkids.on.ca"},{Name:"Greg",...}}
-
- You can then 'get record 1 of a'
-
- I'm not sure if this is a full answer for you maybe just a direction to
- look at...
-
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Fri, 11 Nov 1994 13:58:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: Scriptable Telnet App?
-
- >>Does anyone know of a scriptable Telnet App?
- >>
- >>Thanks,
- >>
- >>Tomo
- >
- >My TCP/IP Scripting Addition includes a Telnet sample script... you can
- >modify it to do whatever you'd like during a telnet session.
- >
- >You can find it at gaea.kgs.ukans.edu, in
-
- snip
-
- >Let me know if you have any questions on using it or customizing it...
- >
- >-- Atul
- >
-
-
- Is it possible to write a full featured terminal emulation package using
- this approach, with regard for terminal emulation etc ? What are the
- issues.?
-
- If this is possible I might give it a try BUT if there are obstacles I
- would like to know of them now rather than when I am down the road.
-
- Frank C.
- R&E
- =========================================================================
- Date: Fri, 11 Nov 1994 11:08:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: String to Record Class
-
- >I have an html form running on a web that writes information out to a file.
- >As you may know this information is tagged with a field name. This got me
- >thinking about applescripts record class so I munged the data it writes to
- >the file to look just like a record - example
- >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >to read that data back in at a later time and have applescript see it as a
- >record class object. When you read the file of course you get a string -
- >can you coerce this string to a record? The simple - newData as record -
- >does not seem to work. Any ideas.
-
- Why munge it into a text file?
-
- If you store it as a property of a script object then you can load and save
- the script object in a script document with very little hassle and still
- have all the information contained inside the script object accessible in
- an easy way. You could have a property contain a list of lists of records
- contain lists of records and have is saved and read perfectly. Or would you
- rather rewrite the AppleScript parser to parse the text stream representing
- these objects.
-
- When a system gives you (a kind of) object oriented persistent store its
- better to make use of it than to perpetuate the "stream of chars" files as
- a storage medium.
-
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Fri, 11 Nov 1994 15:05:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
-
- Upgraded from 7.1 to 7.5 on a centris, no problem (had AS 1.1 both before
- and after)
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Fri, 11 Nov 1994 14:22:27 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Idle time in FaceSpan Application
-
- Aghhhhhhhhhhh helllllllpppppp!
-
- What is the problem with the following piece of script.
-
- on idle
- pollTheNet()
- repurn delayTime
- end idle
-
- It is part of a FaceSpan application that I have written that keep
- an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
- do "pollTheNet()" and with the result update a display on my Mac. However
- what happens is that it just continually does "pollTheNet()" which dosent
- do anything for my productivity as my Mac get tied up with repeated polls.
- ( currently I just hit a button to get the lates condition of things ).
-
- I am obviously missing something fairly basic here but I have been
- fixated on this for so long that I can't see it any more. I have
- implemented a similar procedure with an AppleScript application and that
- works fine with any delay time I care to specify but I would prefer to run
- a FS application.
-
- Is there some concideration to the way in which FS does it as
- opposed to AS.
-
- incidentally 'set idle delay of application "foo" to whatever' is not what
- I want.
-
- Frank C.
- R&E
- =========================================================================
- Date: Fri, 11 Nov 1994 15:41:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Troy Heninger <troyh@NETCOM.COM>
- Subject: Re: Idle time in FaceSpan Application
-
- At 2:22 PM 11/11/94 -0600, Frank Concannon wrote:
- >Aghhhhhhhhhhh helllllllpppppp!
- >
- > What is the problem with the following piece of script.
- >
- >on idle
- > pollTheNet()
- > repurn delayTime
- >end idle
- >
- > It is part of a FaceSpan application that I have written that keep
- >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
- >do "pollTheNet()" and with the result update a display on my Mac. However
- >what happens is that it just continually does "pollTheNet()" which dosent
- >do anything for my productivity as my Mac get tied up with repeated polls.
- >( currently I just hit a button to get the lates condition of things ).
- >
- > I am obviously missing something fairly basic here but I have been
- >fixated on this for so long that I can't see it any more. I have
- >implemented a similar procedure with an AppleScript application and that
- >works fine with any delay time I care to specify but I would prefer to run
- >a FS application.
- >
-
- As far as I understand, the delay time has always been specified in
- seconds, not minutes. That might explain why it continually calls
- pollTheNet(). Try multiplying the number by 60 and see if that helps.
-
- ______________________________________________________________________
- | Troy Heninger | That which you persist in doing becomes easier. |
- | troyh@netcom.com | Its not that the nature of the thing changes, but |
- | | your ability to do it increases. (Heber J. Grant) |
- ______________________________________________________________________
- =========================================================================
- Date: Fri, 11 Nov 1994 15:04:08 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: String to Record Class
-
- >>I have an html form running on a web that writes information out to a file.
- >>As you may know this information is tagged with a field name. This got me
- >>thinking about applescripts record class so I munged the data it writes to
- >>the file to look just like a record - example
- >>{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >>to read that data back in at a later time and have applescript see it as a
- >>record class object. When you read the file of course you get a string -
- >>can you coerce this string to a record? The simple - newData as record -
- >>does not seem to work. Any ideas.
- >
- >Why munge it into a text file?
- >
- >If you store it as a property of a script object then you can load and save
- >the script object in a script document with very little hassle and still
- >have all the information contained inside the script object accessible in
- >an easy way. You could have a property contain a list of lists of records
- >contain lists of records and have is saved and read perfectly. Or would you
- >rather rewrite the AppleScript parser to parse the text stream representing
- >these objects.
- >
- >When a system gives you (a kind of) object oriented persistent store its
- >better to make use of it than to perpetuate the "stream of chars" files as
- >a storage medium.
- >
-
- Well yes but let me walk through this a bit because I still think there is
- a problem.
-
- First I'm taking a long string passed by MacHTTP to my script. Something like:
- "firstname=Greg&lastname=Hiner&department=American+Studies&position=Graduat
- e&interests=Space+for+something+interesting+to+say%2C+if+you+have+something+
- to+say.+Blah%2C+Blah."
-
- So first off I'm starting with a string that is being handed to me by
- another program. I then munge this into a string that looks like a record
- (this maybe stupid I guess but hell it was worth a shot). Now I've got
- something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
- save this string as a property but it still isn't a record.
-
- So I guess the real basic question is can you take a string handed to you
- by another program and turn that string into a record class object?
-
- If I'm missing something real basic here don't assume I know what I'm
- talking about.
-
- Thanks,
-
- Greg
- =========================================================================
- Date: Fri, 11 Nov 1994 14:45:34 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Eudora script upload
- In-Reply-To: Your message of "Fri, 11 Nov 94 19:36:19 GMT"
-
- Hi folks,
-
- >I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
- >automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
- >this is of interest. I'll appreciate any and all suggestions, comments,
- >etc. If anyone can tell me how to move the insertion point in a Eudora msg
- >body, I'll do an improved version right away.
-
- This can be found in
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/EudoraAutoReply.sit.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Fri, 11 Nov 1994 15:18:22 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: String to Record Class
-
- >So first off I'm starting with a string that is being handed to me by
- >another program. I then munge this into a string that looks like a record
- >(this maybe stupid I guess but hell it was worth a shot). Now I've got
- >something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
- >save this string as a property but it still isn't a record.
-
- Hmm... Let me ask a stupid question:
-
- As long as you're munging, why not munge directly to a record? Or at least a
- list? I've had a lot of success with Wayne Walrath's "tokenize" osax for this
- kind of munging. In fact, one of Wayne's example scripts includes a munger
- for an Internet header that looked a lot like your example.
-
- As far as writing to a file, try this:
- ***
- set theList to {{firstname:"Greg", lastname:"Hiner"}, {firstname:"David",
- lastname:"Jokinen"}}
-
- -- open a file
- write theList to theFileRef
-
- -- take a nap then reopen the file
- set theList to read theFileRef as list
- ***
- David Jokinen
- Ground Zero Software
- =========================================================================
- Date: Fri, 11 Nov 1994 15:37:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Tricky problem using date comparison
-
- >>This app has its own definition of what
- >>'date' means and refuses to work.
- >
- >I don't have Eudora to see how it handles dates, but I once ran into
- >something like this with the offset command. Rather than break up my main
- >script, I sent the job to a subroutine, which was governed by AppleScript
- >alone, returning any necessary data (a boolean, in your case) to the main
- >script.
-
- After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
- date as the string "Tuesday", I decided I didn't want to deal with that
- (for today it's a time, for this week its a day name, otherwise its a
- date/time string). There may well be an "as ..." phrase one can use to get
- a known date format from Eudora.
-
- Maybe over the weekend, if I don't see other posts.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 11 Nov 1994 15:41:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
-
- Yes...and indeed it is annoying. It's not restricted to Script
- Editor...you can induce SimpleText to do much the same thing. It seems to
- be related to heavily mixed type faces on a single line. [I think it's
- also related to Script Editor's insistence, here, on drawing the right ends
- of long lines under the scroll bar...a problem shared with alternate
- dictionary viewers.]
-
- On my machine (8100), this problem predates System 7.5, by the way.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 11 Nov 1994 18:18:18 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Script Editor Clicking Inaccurate
-
- I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
- >Dennis L. Whiteman
- >THE ULTIMATE FREELANCER
- >ultimate@mail.icon.net
-
- ScrAp the prefs file and start up the app, it will make new ones. Those are
- almost always your culprit.
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Fri, 11 Nov 1994 19:39:40 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matt Brown <c624618@SHOWME.MISSOURI.EDU>
- Subject: Re: Script Editor Clicking Inaccurate
-
- At 11:45 AM 11/11/94, Dennis Whiteman wrote:
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem.
-
- Yes, I have this same problem. The strange thing is that it just began, and
- I have changed nothing in my system configuration! Any input would be
- greatly appreciated.
-
- Matt Brown | "Our scientific power has outrun our
- | spiritual power. We have guided
- c624618@showme.missouri.edu | missiles and misguided men."
- http://www.missouri.edu/~c624618 | --Martin Luther King Jr.
- =========================================================================
- Date: Fri, 11 Nov 1994 20:46:14 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: { brad brace } <bbrace@NETCOM.COM>
- Subject: Microphone Script help needed
-
- Can anyone provide some assistance with the following Microphone script?
- I think I'm close to making this work...?
-
- Settings File = MicroPhone Settings
- Script Name = 12-hr
- Command Key = =
- F-Key =
- Menu = YES
- Button = NO
- Version = 4000
- System = Macintosh
-
- This project requires a script which will upload one jpeg and one gif file
- to my dial-up Internet ftp account every 12 hours. I plan to scan a dozen
- or so photos at a time into my home computer (they will be consecutively
- named, ie. 0001.gif, 0002.gif, 0003.gif... 0001.jpg, 0002.jpg,
- 0003.jpg...etc), and placed in the folder named 12-hr. The first two of
- these scans need to be renamed to 12hr.gif and 12hr.jpg prior to being
- uploaded (where they will replace the identically named, previous files of
- the last 12 hours). The modem then disconnects and the process repeats 12
- hours later.
-
- The imagery for this project has been fifteen years in the making, and is an
- appropriate extension from the physically-published ISBN-books (see file
- in my ftp-subdir). There are several thousand, sequenced, grey-scale
- images that are to be electronically published/posted once every 12 hours
- for years to come. Needless to say I need to automate this procedure and
- try and curtail as many glitches as possible at the outset. Any additional
- assistance/ideas are gratefully appreciated.
-
-
-
- 1 Set Variable * 12-hr from Folder Dialog "'12-hr'"
- 2 Wait Until Time "'12:00'"
- 3 Set Variable * count from Expression "0"
- 4 While Expression "count < 12"
- 5 Set Variable * filename from Expression "'0000' & count & '.jpg'"
- 6 Set Variable * filename from Expression "'0000' & count & '.gif'"
- 7 File * Rename "filename,'12hr.jpg'"
- 8 File * Rename "filename,'12hr.gif'"
- 9 Dial Service * "'netcom'"
- 10 Wait for Text "'login'"
- 11 Send Text String "'bbrace^M'"
- 12 Wait for Text "'password:'"
- 13 Send Text String "'xxxx^M'"
- 14 Repeat
- 15 Until Success
- 16 Send File * ZMODEM Binary "'12hr.jpg'"
- 17 Send File * ZMODEM Binary "'12hr.gif'"
- 18 Send Text String (protected) "'mv 12hr.* ~ftp/pub/bbrace'"
- 19 Send Text String (protected) "'chmod a+r ~ftp/pub/bbrace/*'"
- 20 Send Text String (protected) "'lo'"
- 21 File * Rename "'12hr.jpg',filename"
- 22 File * Rename "'12hr.gif',filename"
- 23 Set Variable * count from Expression "count +1"
- 24 End While
-
-
- (Does the 12hr-folder need to be in the Microphone folder?)
- (Will Microphone be able to wake my Mac up every 12hrs?)
-
- --
- { brad brace } bbrace@netcom.com
- ftp://ftp.netcom.com/pub/bbrace/bbrace.html ~finger for pgp
- =========================================================================
- Date: Fri, 11 Nov 1994 23:07:10 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >>Hello,
- >>
- >>Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >>7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >>frustrated. I have to click close to some text and cursor over to select w=
- hat
- >>I want. Clicking is off by one or two characters and its a real problem. I
- >>didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >>file over from the old System. Could this have something to do with this
- >>problem?
- >
- >
- >I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
- >back from an Apple test engineer asking how to repro it. I sent a really
- >detailed bug report (including step by step instructions) and I think they
- >then reproed it and sent it onto engineering.
- >
- >In my case it only happened on a Power Mac (any model) with System 7.5 with
- >the WorldScript Power Adaptor extension loaded. The offset seemed related
- >to the number of style changes in a line of text. Removing the WorldScript
- >Power Adaptor extension solved the problem, but TextEdit is then as slow as
- >hell.
- >
- >This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
-
- Only because my message crossed yours. But...my message was *wrong*...only
- the "dictionary under the scroll bar" behavior appears on my IIci (System
- 7.5). The incorrect hit placement does not.
-
- And I don't now remember when I first saw that on my PowerMac...it might
- well have been after I switched to a beta 7.5 release.
-
- Thanks for setting me right!
-
- Since the problem is curable by removing the WorldScript=81 Power Adapter
- extension (I haven't tried it...no reason to doubt you), it is highly
- likely that it can be repaired by a replacement WorldScript=81 Power
- Adapter...which might mean it happens even sooner than System Update
- [next], and in any case probably not after that.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sat, 12 Nov 1994 23:49:09 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chris Burns <chris-b@CS.AUKUNI.AC.NZ>
- Subject: SUBSCRIBE
-
- -----------------------------------------------------------------------
- NewZealand:AucklandUniversity:ComputerScience:HyperMediaUnit:ChrisBurns
- Internet: chris-b@cs.auckland.ac.nz
- Phone: +64 9 373-7599 x6194
- Fax: +64 9 373-7453 Async, therefore I am.
- -----------------------------------------------------------------------
- =========================================================================
- Date: Sat, 12 Nov 1994 12:16:52 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Re: Eudora auto-reply
-
- >>Working on an auto-reply from Eudora & it has one bug: after completing the
- >>"connect with checking" and the filtering into mailbox "test" Eudora throws
- >>up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
- >>OK and the script completes its drill. Tried turning off the Mail Arrived
- >>alerts in Eudora but no joy. Anyone tell me what's up?
- >
- >That's the effect I would expect from trying to start of really Power Mac
- >only application on a 68K Mac. [Well behaved Power Mac only apps have
- >enough 68K code in CODE resources to put up a "you can't do that on this
- >machine" sort of alert, and quit gracefully.]
- >
- >However, I wouldn't expect that cause in your context.
- >
- > --John
- >
- >--
- >jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- John,
-
- Finally solved this: Steve Dorner said to look for a resource 'eNot'
- (Eudora Notify I presume) in Eudora Prefs and throw it away. It worked.
- Opening eNot shows enough for a non-programmer like me to see that Eudora
- had 'acquired', I guess is the word, an AS app I'd been fooling with for
- Notify but which wasn't functional so Eudora couldn't open it.
-
- Dan
- =========================================================================
- Date: Sat, 12 Nov 1994 01:53:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
- Organization: Brown University -- Providence, Rhode Island USA
- Subject: Backgrounding
-
- Okay, I saw the post from Jaeson Engle earlier on setting a script to
- backdround only (so it wouldn't show up in the application menu), and in
- my case it worked (in his it crashed). But the problem was this...
- The script was a folder watcher, it monitered my drop folder to see if
- anything was dropped on it, and if something was it played a sound (pretty
- simple). However.. after I backgrounded it (using resEdit to change the
- Size resource to backgrounding), it then tried to do it's thing and
- realized that it wasn't the front application. It then tried to bring
- itself to front, found it was background only, then just flashed on my
- application menu until I shut down. I couldn't bring it to front to quit,
- and it couldn't bring itself to front to opperate because it was
- background only.
- I really dislike it cluttering up my applications menu, but as it
- stands I see no other real option. Does anyone out there have any
- suggestions?
-
-
- thanks,
-
- IN(--C--)SAN(--A--)ITY I(--L--)S MAND(--e--)ATOR(--B--)Y
- =========================================================================
- Date: Sat, 12 Nov 1994 09:41:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: FMP Repeating Fields and Excel WorkSheets
-
- Speaking of repeating fields...
-
- ...I'm trying to figure out how to take the data from a repeating field and
- stuff it into an Excel worksheet as a row.
-
- I am using
-
- tell application "FileMaker Pro"
- copy cellValue of cell "Repeating Field" to theRepeatingField
- end tell
-
- -- this gets the information from the repeating field as a list
-
-
- tell application "Microsoft Excel"
- make new row at row r with data theRepeatingField
- end tell
-
- -- this gets me an error that reads Excel cannot continue -10000
-
- I've called MS tech support and they've not been able to tell me what I
- should be doing.
- =========================================================================
- Date: Sat, 12 Nov 1994 09:41:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: FMP & Picture Fields
-
- How does one get a picture field out of FMP in an applescript?
-
- I've tried this with...
-
- tell application "FileMaker Pro"
- copy cellValue of cell "Picture" to thePicture
- end tell
-
- ...which doesn't work.
- =========================================================================
- Date: Sat, 12 Nov 1994 00:23:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): Script Editor Clicking Inaccurate
-
- Actually,
-
- I'm using a 7100/66av and just installed 7.5 a week ago. The WorldScript
- Power Adaptor extension was also installed. I removed it, but haven't been
- doing in scripting. I'll report back whether it fixes or doesn't fix the
- problem and whether it affects any other apps. BTW, I was wondering, why do I
- need the WorldScript Power Adaptor extension if I'm only using english on my
- system.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ------ From: Macintosh Scripting Systems, Fri, Nov 11, 1994 ------
-
- This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
- =========================================================================
- Date: Sat, 12 Nov 1994 17:13:29 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: String to Record Class
-
- >>So first off I'm starting with a string that is being handed to me by
- >>another program. I then munge this into a string that looks like a
- >record
- >>(this maybe stupid I guess but hell it was worth a shot). Now I've
- >got
- >>something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I
- >could
- >>save this string as a property but it still isn't a record.
- >
- >Hmm... Let me ask a stupid question:
- >
- >As long as you're munging, why not munge directly to a record? Or at
- >least a
- >list? I've had a lot of success with Wayne Walrath's "tokenize" osax
- >for this
- >kind of munging. In fact, one of Wayne's example scripts includes a
- >munger
- >for an Internet header that looked a lot like your example.
- >
-
- If you would like to be able to play with lists as if they were actually
- records (the big ommission in AppleScript: not being able to create records
- on the fly--ie, without first defining the labels), I wrote a "search in
- list" osax which will locate an item in a list and either return its index or
- optionally the next item in the list (this is the behavior which is supposed
- to allow you to treat lists like records). There are options for case
- sensitivity, and for searching only even or only odd items in the list. I
- haven't released it yet since I haven't had time to test it much yet, but if
- anyone would like to test it for me, I'd be happy to send a copy.
-
- -wayne
- =========================================================================
- Date: Sat, 12 Nov 1994 17:23:18 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Scriptable Telnet App?
-
- >Is it possible to write a full featured terminal emulation package
- >using
- >this approach, with regard for terminal emulation etc ? What are the
- >issues.?
- >
- >If this is possible I might give it a try BUT if there are obstacles I
- >would like to know of them now rather than when I am down the road.
-
- Atul's osax will provide you with the connectivity but it can't do anything
- for you with respect to writing a terminal editor. I'm not convinced that
- AppleScript would provide you with the kind of performance you and your users
- would want in a terminal emulator.
-
- -wayne
- =========================================================================
- Date: Sat, 12 Nov 1994 11:31:41 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Gaea down?
-
- I can't seem to be able to get into gaea since yesterday morning. The error
- I get is:
- "452 Can't create data socket (129.237.140.40,20): Interrupted system call."
-
- Anyone know what's up?
- TIA,
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Sat, 12 Nov 1994 11:28:01 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re(2): Script Editor Clicking Inaccurate
-
- >I'm using a 7100/66av and just installed 7.5 a week ago.
-
- Makes me feel like Hercule Poirot!
-
- >The WorldScript
- >Power Adaptor extension was also installed. I removed it, but haven't been
- >doing in scripting. I'll report back whether it fixes or doesn't fix the
- >problem and whether it affects any other apps.
-
- It will but you'll have to make the judgement call on whether its worth while.
-
- It seems also to be related to coloring the text -- do you have
- multi-colored text in you AppleScript formating? If you use fewer colors
- (black only) I think that works around the problem too (but you loose all
- that syntatic information).
-
- >BTW, I was wondering, why do I
- >need the WorldScript Power Adaptor extension if I'm only using english on my
- >system.
-
- Because it contains power mac code for TextEdit even if you don't use any
- other scripts you will use this.
-
- I eventually went back to a IIci for while (that and because the Power Mac
- is a much better detector of memory problems than a 68k Mac -- it bombs
- much sooner!) and then managed to get a Q700.
-
- It'll be nice when AppleScript goes native!
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Sat, 12 Nov 1994 11:46:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Idle time in FaceSpan Application
-
- >on idle
- > pollTheNet()
- > repurn delayTime
- >end idle
- >
- > It is part of a FaceSpan application that I have written that keep
- >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
- >do "pollTheNet()" and with the result update a display on my Mac. However
- >what happens is that it just continually does "pollTheNet()" which dosent
- >do anything for my productivity as my Mac get tied up with repeated polls.
- >( currently I just hit a button to get the lates condition of things ).
- >
- > I am obviously missing something fairly basic here but I have been
- >fixated on this for so long that I can't see it any more. I have
- >implemented a similar procedure with an AppleScript application and that
- >works fine with any delay time I care to specify but I would prefer to run
- >a FS application.
- >
- > Is there some concideration to the way in which FS does it as
- >opposed to AS.
- >
- >incidentally 'set idle delay of application "foo" to whatever' is not what
- >I want.
-
- The FS idle command does not work in the same way as the AppleScript idle
- (the user returns the time you want to delay to the next idle event).
-
- It may be that that is exactly what you want -- have you set it to a value
- other than the default? The default is to get an Idle event every TICK
- (1/60 second) (according to p102 of Building Interfaces). Your Mac isn't
- going to get time to do much else!
-
- You control the frequency of the idle event messages by setting the idle
- delay of the window or application (with the application value over riding
- the window value if the window value is larger than the application value).
- If you need a variable delay you could do that by setting the idle delay
- property in the idle handler.
-
- Have you tried this? Have you initialised the property when you opened the
- window (say in a prepare handler or a open ... with properties)?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Sat, 12 Nov 1994 11:54:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Backgrounding
-
- > I really dislike it cluttering up my applications menu, but as it
- >stands I see no other real option. Does anyone out there have any
- >suggestions?
-
- ScriptHider on gaea does this job.
-
- >From the Read me:
-
- Script Hider by Mark Aiken
-
- What is Script Hider, in a nutshell?
-
- Script Hider is an invisible application that runs AppleScript (Or
- other OSA-compliant language) scripts. Script Hider was written in response
- to a Netter's complaint: the person in question runs a Mac lab and has a
- monitoring script that gets launched at startup. Unfortunately, the
- students in his lab have a habit of quitting said script, since it is
- visible in the application menu and doesn't look very important. The Netter
- was looking for a way to make his script invisible so people couldn't mess
- with it. I got bored one afternoon, so here it is!
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Sat, 12 Nov 1994 15:19:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
- Organization: Brown University -- Providence, Rhode Island USA
- Subject: Re: Gaea down?
-
- In article <GRAND%LISTS.APPLESCRIPT.5186@brownvm.brown.edu>, Macintosh
- Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU> wrote:
-
- > I can't seem to be able to get into gaea since yesterday morning. The error
- > I get is:
- > "452 Can't create data socket (129.237.140.40,20): Interrupted system call."
- >
- > Anyone know what's up?
- > TIA,
-
- Nope, but I'm getting the same problem,
-
- Madness (Caleb Welton)
- =========================================================================
- Date: Sat, 12 Nov 1994 12:04:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: FMP Repeating Fields and Excel WorkSheets
-
- >Speaking of repeating fields...
- >
- >...I'm trying to figure out how to take the data from a repeating field and
- >stuff it into an Excel worksheet as a row.
- >
- >I am using
- >
- >tell application "FileMaker Pro"
- > copy cellValue of cell "Repeating Field" to theRepeatingField
- >end tell
- >
- >-- this gets the information from the repeating field as a list
- >
- >
- >tell application "Microsoft Excel"
- > make new row at row r with data theRepeatingField
- >end tell
- >
- >-- this gets me an error that reads Excel cannot continue -10000
- >
- >I've called MS tech support and they've not been able to tell me what I
- >should be doing.
-
- The rows already exist.
-
- Tell the document to
-
- set theRange to "R1C1:R1C3"
- set Range theRange to {"4", "5", "6"}
-
- for 3 items in row 1
-
- You can build the name with the usual string handling code:
-
- set theRange to =AC
- "R" & topRow & "C" & topCol & ":" & "R" & bottomRow & "C" & bottomCo=
- l
-
- Make sure the data is a list you may have to munge the data you get from
- =46MP to be certain this is the case.
-
- If the data doesn't fill the range (or overfills the range) then Excel
- bombs (makes debugging fun!)
-
- Gaea has a collection of info an scripting Excel 4.0
-
- =AC is the continuation character (option-L) for the MIME impaired
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer =20
- =========================================================================
- Date: Sat, 12 Nov 1994 14:15:05 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
- Subject: Low class
-
- (***********************
- Chuck Pliske writes:
-
- CP> I have been trying to use the boolean file properties but they
- CP> don't seem to work:
- CP>
- CP> on open xyzzy
- CP> tell application "Finder"
- CP> repeat with f in xyzzy
- CP> if the folder of f then
- CP> ...
- CP> end if
- CP> end repeat
- CP> end tell end open
- CP>
- CP> The dictionary sez there are a few of these: locked (which works),
- CP> and alias and folder (which don't seem to work)
- CP>
- CP> An apple example (synchronize folders) uses the (f as text) and
- CP> looks for a trailing ":" to indicate a folder, but it seems as
- CP> though there is a testable property.
-
- I too wonder why you can't say
- folder of f
- in his example.
-
- I'd think you could test
- class of f
- but that also fails.
-
- You *can* test
- class of item f
- and that works, as shown below.
-
- I'd think, then, that you could say
- (class of item f) as string
- but you can't do that either.
- I guess you can't coerce class names to strings, for some reason.
- You *have* to test the class against the keyword, folder.
- ***********************)
-
- on open xyzzy
- tell application "Finder"
- repeat with f in xyzz
- set ans to "not "
- if the class of item f is folder then set ans to ""
- display dialog (f as string) & " is " & ans & "a folder.
- "
- end repeat
- end tell
- end open
-
-
- (***********************
- >>>>>Nelson@nbyrne.SAIC.com
- Nelson Byrne
- SAIC LOC#001/MS#C2
- 10260 Campus Point Drive
- Sandy Eggo, CA 92121
- >>>>>(619) 546-6485
- ***********************)
- =========================================================================
- Date: Sat, 12 Nov 1994 14:23:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: diff of a date
-
- >Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
- >using Eudora's definition of the term 'date' and not Applescripts. I can't
- >very well jump out of Eudora (end tell) because I'm right in the middle of
- >a repeat loop and I have to get assign the value of diff from criteria I
- >grab from Eudora. There must be some easy work around for this one. Can
- >some expert enlighten me?
-
- (A Guess) You could always wrap the diff with "Tell finder" inside of the
- "Tell Eudora" bloock.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Sat, 12 Nov 1994 15:13:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Creating a record with data in FileMaker
-
- Anyone have a better way to do the following:
-
- tell application "FileMaker Pro"
- Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
- end tell
-
- THe above works, but Filemaker assigns the variables to seemingly random
- fields within the database. What I'd like to do is to include the field
- name with the variables so the correct data always goes to the right field,
- but I can't figure out the syntax for that. As it is now, if you have a
- bunch of variables, Filemaker seems to do some weird things.
-
-
-
- -- Michael
-
-
- _____________________________________________________________________________
- Michael Robertson - MR Mac (619) 534-5107 office
- Macintosh Business Consultant (619) 989-8943 pager
- San Diego Supercomputer Ctr. (619) 534-5152 fax
-
- Internet, America Online robertso@sdsc.edu
- _____________________________________________________________________________
- =========================================================================
- Date: Sun, 13 Nov 1994 10:28:09 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: diff of a date
- In-Reply-To: <199411122253.JAA27522@ariel.ucs.unimelb.EDU.AU> from "Brian
- Hall" at Nov 12, 94 02:23:11 pm
-
- >
- > >Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
- > >using Eudora's definition of the term 'date' and not Applescripts. I can't
- > >very well jump out of Eudora (end tell) because I'm right in the middle of
- > >a repeat loop and I have to get assign the value of diff from criteria I
- > >grab from Eudora. There must be some easy work around for this one. Can
- > >some expert enlighten me?
- >
- > (A Guess) You could always wrap the diff with "Tell finder" inside of the
- > "Tell Eudora" bloock.
- >
- 'Tell me to...'
-
- "Me" refers to the current script application. If it's a compiled script I think
- it
- refers to the front application (ie. the Script Editor if you click the
- 'Run' button). I'm not sure about this though.
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Sun, 13 Nov 1994 10:33:36 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: FMP Repeating Fields and Excel WorkSheets
- In-Reply-To: <199411122253.JAA27564@ariel.ucs.unimelb.EDU.AU> from "Kevin
- Purcell" at Nov 12, 94 12:04:24 pm
-
- >
- > >Speaking of repeating fields...
- > >
- > >...I'm trying to figure out how to take the data from a repeating field and
- > >stuff it into an Excel worksheet as a row.
- > >
- > >I am using
- > >
- > >tell application "FileMaker Pro"
- > > copy cellValue of cell "Repeating Field" to theRepeatingField
- > >end tell
- > >
- > >-- this gets the information from the repeating field as a list
- > >
- > >
- > >tell application "Microsoft Excel"
- > > make new row at row r with data theRepeatingField
- > >end tell
- > >
- > >-- this gets me an error that reads Excel cannot continue -10000
- > >
- > >I've called MS tech support and they've not been able to tell me what I
- > >should be doing.
- >
- > The rows already exist.
- >
- > Tell the document to
- >
- > set theRange to "R1C1:R1C3"
- > set Range theRange to {"4", "5", "6"}
- >
- > for 3 items in row 1
- >
- > You can build the name with the usual string handling code:
- >
- > set theRange to =AC
- > "R" & topRow & "C" & topCol & ":" & "R" & bottomRow & "C" & bottomCo=
- > l
- >
- > Make sure the data is a list you may have to munge the data you get from
- > =46MP to be certain this is the case.
- >
- > If the data doesn't fill the range (or overfills the range) then Excel
- > bombs (makes debugging fun!)
- >
- Actually, I think it's OK to overfill a range. I find it easiest to write a
- simple "fillRange" handler, which takes the Excel range name and list data
- as two parameters. It would then find the number of rows, the count of the
- list, and add null string list items to fill up the list (set end of
- theList to "").
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Sun, 13 Nov 1994 10:59:10 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: drag and drop application for changing creator code
- In-Reply-To: <199411110346.OAA21347@ariel.ucs.unimelb.EDU.AU> from "Kevin
- Purcell" at Nov 10, 94 02:44:16 pm
-
- >
- > >Hi everyone,
- > > I was interested in the question about how to write a script that
- > >would change a file's creator code, but I do that a lot. I'd like to make a
- > >script-application onto which I can drop files to change their creator
- > >codes, but nothing I do seems to produce the icon with the downward arrow
- > >that the drop-compatible app should have (my app also doesn't allow me to
- > >drop on it). What am I doing wrong? I know that this is a stupid question,
- > >but I haven't received the Tao of AppleScript yet.-:)
- > > Attached is my script.
- > > Many thanks,
- > > Marc
- > >
- > >on run
- > > tell application "Finder"
- > > activate
- > > set theFile to selection
- > > set file type of file theFile to "TEXT"
- > > set creator type of file theFile to "R*ch"
- > > end tell
- > >end run
-
- If you're doing this as more as just an exercise, you might find
- 'FileTyper' helpful.
-
- It includes a program called 'Make AutoTyper', which allows you to create
- droplets that change any Finder info to anything else, including seaching
- through subfolders of a dropped folder.
-
- I've made an AutoTyper droplet that converts a TeachText file to a BBEdit
- file, for example.
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Sun, 13 Nov 1994 11:05:29 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: AppleScripts controlling AppleScripts
- In-Reply-To: <199411101417.BAA26042@ariel.ucs.unimelb.EDU.AU> from "Mark
- Hadfield" at Nov 10, 94 09:02:34 am
-
- >
- > >>
- > >> I'm trying to make one AppleScript send commands to another AppleScript,
- > >> without success. To test the possibility of doing this, I have created two
- > >> AppleScript applications, Master and Slave.
- > >>
- > >> Master's script:
- > >>
- > >> tell application "Slave"
- > >> run
- > >> doOrder("This is a test.")
- > >> end tell
- > >>
- > >>
- > >> Slave's script:
- > >>
- > >> on doOrder(theText)
- > >> display dialog theText
- > >> end doOrder
- > >>
- > >>
- > >> When I run Master, it apparently activates Slave, but all I get is a
- > >> spinning ball cursor and, eventually, a timeout error from Slave. If I
- > >> leave the "run" command out of Master's script or replace "run" with an
- > >> "activate" command, it does not appear to activate Slave.
- >
- > Jeremy P. Howard responded:
- > >Slave must be saved as 'stay-open'. It doesn't need a run command, but you
- > >do have to have it running to use it (open it with the Scriptable Finder,
- > >eg). Other than that, this should be fine.
- >
- > Jeremy is right with one small addendum: you do not have to have it
- > running to for it to work. As long as the slave applet is saved as
- > 'stay-open' when you issue it a command it will launch and then perform
- > the command. No need to launch it from the scriptable finder. Now if the
- > slave applet was on a different Mac on the network it would need to be
- > running to receive the command...
- >
- Oops... that's what I meant! (Sorry). I'm in network mode after just
- completing a remote printing application, which called QuicKeys, remote
- opens and prints, and all kinds of other stuff, over a network.
-
- If anyone else is doing this kind of stuff, I strongly suggest you get
- Timbuktu, which displays the remote computers screen on your monitor in a
- window), and allows you to control it!
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Sat, 12 Nov 1994 18:40:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >In my case it only happened on a Power Mac (any model) with System 7.5 with
- >the WorldScript Power Adaptor extension loaded. The offset seemed related
- >to the number of style changes in a line of text. Removing the WorldScript
- >Power Adaptor extension solved the problem, but TextEdit is then as slow as
- >hell.
-
- For what its worth, I saw the same behaviour on a PowerMac that we were
- using for demo purposes at MacWorld.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Sun, 13 Nov 1994 04:23:11 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Creating a record with data in FileMaker
-
- > Anyone have a better way to do the following:
- >
- > tell application "FileMaker Pro"
- > Create Record At Window "Archiver Database" With Data
- {Var1,var2,var3,etc}
- > end tell
- >
- > THe above works, but Filemaker assigns the variables to seemingly random
-
- It's not really random, it assigns them in the order that the fields were
- originally created (tab order and placement on the template makes no
- difference).
-
- -wayne
- =========================================================================
- Date: Sun, 13 Nov 1994 01:19:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "rD>" <u33743@UICVM.UIC.EDU>
- Subject: My first question...
-
- Hi all. I am brand new to the list and to AppleScript.
- Hope you don't mind if I start right off with a scripting question.
-
- Here is my script:
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- global whatsNext
- on run
- execute FKEY 3
- tell application "KQ Apple Events"
- DoScript =AC
- "Open \"Macintosh HD:Picture 1\"
- Wait 12 seconds
- Menu \"Page Setup=8A\"
- Key \"8\"
- Key \"0\"
- Key Return
- Menu \"Print One Copy\"
- Menu \"Close\"
- Wait 15 seconds
- Application \"Finder\""
- end tell
- end
- on idle
- if whatsNext is "setup" then
- set whatsNext to "pauseDone"
- return (60 * 0.5)
- else
- doRest()
- end if
- end idle
- on doRest()
- moveFile "Macintosh HD:Picture 1"
- emptyTrash
- end doRest
- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
- =3D=3D=3D=3D=3D=3D
- What I am attempting here is fairly clear with the script I hope.
- I want a screen shot (am running video input on screen), I want to print
- that screenshot, and then delete that file and have the script start over.
- I want this to run by itself, all day. The idea is to have the computer
- surveillancing a place with the video in, and provide a print every few
- minutes or so(can I control the time here?).
-
-
- The global and the _on idle_ commands I got from someone's advice.
- I have the TAO... and it does not cover these functions, yet in a FAQ I
- read that this book includes the full language. Apparently not.
- I also read that AS has some stuff that is hard to find out about!
-
- This script works, but I don't know where to make the repeat loop.
- I have a feeling that the whole thing could be rewritten and made better,
- but this is my first (ambitious) script.
-
- Any help, suggestions would be greatly appreciated.
-
- -r
-
- ___________________________________________________________________
- Do not be greedy, lustful and overly desirous. Be moderate in your needs
- and be content once you reach your goal.
- --Ni, Hua Ching
-
- <robert denton>
- <univ. of illinois, chicago>
- <u33743@uicvm.uic.edu>
- =========================================================================
- Date: Sat, 12 Nov 1994 22:21:44 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
-
- >Yeah, Jon, Get a life! .... ;-)
-
- I've got one. I just spent opening day at Squaw Valley amidst a very nice
- snowstorm and plenty of powder. It's about the only pasttime better than
- hacking. ;)
-
- Jon
- =========================================================================
- Date: Sun, 13 Nov 1994 00:30:21 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Getting bounds of desktop
-
- At 09:21 10/17/94 (far too long ago), Preston Holmes wrote:
-
- >I would like to know if it is possible to get the current desktop size
- >using the scriptable finder. The ultimate goal is to get the screen size.
- >Now I know of several great screen osax that could do this but I would like
- >to have a script that is portable enough to say "requires sys7.5" Asking
- >non-scripters to go and get large osax packages just for one osax is too
- >much for the non-scripter (IMHO).
-
- I don't remember whether an answer appeared. Here's one way:
-
- tell application "Finder"
- bounds of container window of desktop
- end tell
-
-
- On my machine, this returns {0, 20, 832, 624}
-
- You would want to check out what it does on a multiple-monitor machine.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 13 Nov 1994 16:11:32 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter van Aarle <aarle@RUUCJ1.CHEM.RUU.NL>
- Subject: Re: Tricky problem using date comparison
-
- >Date: Fri, 11 Nov 1994 15:37:17 -0800
- >From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- >Subject: Re: Tricky problem using date comparison
- >
- >>>This app has its own definition of what
- >>>'date' means and refuses to work.
- >>
- >>I don't have Eudora to see how it handles dates, but I once ran into
- >>something like this with the offset command. Rather than break up my main
- >>script, I sent the job to a subroutine, which was governed by AppleScript
- >>alone, returning any necessary data (a boolean, in your case) to the main
- >>script.
- >
- >After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
- >date as the string "Tuesday", I decided I didn't want to deal with that
- >(for today it's a time, for this week its a day name, otherwise its a
- >date/time string). There may well be an "as ..." phrase one can use to get
- >a known date format from Eudora.
- >
- John, my AppleScripting is up to this yet, but I CAN tell you that the way
- of formatting the message date in Eudora 2.1 is dependent on the settings.
- When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
- setting, the data will be a normal format (i.e. mm/dd/yy or something).
- The way it is set in your copy is the setting called 'Age-sensitive' under
- the 'Fonts & Display' setting. This is probably VERY difficult to script
- because not only does the date-format change depending on the age of the
- message, but the user can also CHANGE the way theis aging works!
-
- Peter van Aarle (aarle@boc.chem.ruu.nl)
- =========================================================================
- Date: Sun, 13 Nov 1994 10:15:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Creating a record with data in FileMaker
-
- >Anyone have a better way to do the following:
- >
- >tell application "FileMaker Pro"
- > Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
- >end tell
- >
- >THe above works, but Filemaker assigns the variables to seemingly random
- >fields within the database. What I'd like to do is to include the field
- >name with the variables so the correct data always goes to the right field,
- >but I can't figure out the syntax for that. As it is now, if you have a
- >bunch of variables, Filemaker seems to do some weird things.
-
- >Michael Robertson - MR Mac (619) 534-5107 office
- >Macintosh Business Consultant (619) 989-8943 pager
- >San Diego Supercomputer Ctr. (619) 534-5152 fax
- >
- >Internet, America Online robertso@sdsc.edu
- >_____________________________________________________________________________
-
- Try this:
-
- Tell application "Filemaker Pro"
- Create new record at database "Archiver Database"
- set currentRecord to current record of database "Archiver Database"
- set cell "Name" of currentRecord to "Mark"
- set cell "Address" of currentRecord to "hadfield@sickkids.on.ca"
- .
- .
- .
- end tell
-
- That should do it I hope!
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Sun, 13 Nov 1994 10:16:56 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
- Subject: Re: Creating a record with data in FileMaker
-
- In message <199411131516.JAA18279@boombox.micro.umn.edu> Macintosh Scripting
- Systems writes:
- > >Anyone have a better way to do the following:
- > >
- > >tell application "FileMaker Pro"
- > > Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
- > >end tell
- > >
- > >THe above works, but Filemaker assigns the variables to seemingly random
- > >fields within the database.
- >
- > Try this:
- >
- > Tell application "Filemaker Pro"
- > Create new record at database "Archiver Database"
- > set currentRecord to current record of database "Archiver Database"
- > set cell "Name" of currentRecord to "Mark"
- > set cell "Address" of currentRecord to "hadfield@sickkids.on.ca"
-
- This method works, but it is so slow it is unusable. On my Powerbook 165c,
- this took about five seconds PER CELL. Is there something else one
- can do to improve the execution speed?
-
-
- Stephen E. Collins <URL:http://www.micro.umn.edu/staff/sec>
- University of Minnesota sec@boombox.micro.umn.edu
- Distributed Computing Services (612) 625-1300 Fax: 625-6817
-
- Remember to give back to the net.
- =========================================================================
- Date: Sun, 13 Nov 1994 12:09:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Creating a record with data in FileMaker
- In-Reply-To: <no.id> from "Stephen E. Collins" at Nov 13, 94 10:16:56 am
-
- --Stephen E. Collins wrote:
- >
- >This method works, but it is so slow it is unusable. On my Powerbook 165c,
- >this took about five seconds PER CELL. Is there something else one
- >can do to improve the execution speed?
-
- Which version of FMP are you using. 2.1v3 is much faster at handling
- Apple Event calls than previous versions. I'm pretty sure it's a free
- upgrade from any version of 2.0.
-
- -Hades
- =========================================================================
- Date: Sun, 13 Nov 1994 09:57:14 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Creating a record with data in FileMaker
-
- >> Anyone have a better way to do the following:
- >>
- >> tell application "FileMaker Pro"
- >> Create Record At Window "Archiver Database" With Data
- {Var1,var2,var3,etc}
- >> end tell
- >>
- >> THe above works, but Filemaker assigns the variables to seemingly random
-
- >It's not really random, it assigns them in the order that the fields were
- >originally created (tab order and placement on the template makes no
- >difference).
-
- Wayne's right. Open your Define Fields dialog and set the popup menu in the
- upper-right corner to read "creation order." That's the order you have to
- deal with. Often, this order is a mess if you've been developing the database
- over a long time. There is no easy fix. Either duplicate, rename and delete
- the fields until they make sense, or start over from scratch and re-import
- the data.
-
- Hint: If you "tell" Layout 0, you can deal with the raw, unformatted data
- from every field in the database. This is usually what you want. For
- instance, here's the masochist's way to duplicate the current record:
- ***
- tell application "FileMaker Pro"
- tell Layout 0 of Database "FooBar"
- get every Cell
- Create New Record With Data result
- end tell
- end tell
- ***
- David Jokinen
- Ground Zero Software
- =========================================================================
- Date: Sun, 13 Nov 1994 13:35:28 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS: Monthly Mailing
-
- [ I will be on vacation all this week so it is even more crucial than ever
- that you use "macscript-request@dartmouth.edu" for when you need to ask a
- human a question vs. writing to me directly. I will not see your mail for a
- week. Fred WILL *IF* you send it to the address I just listed. -ajw]
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
- [Do NOT send mail directly to Fred Terry or Andy Williams!]
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
- =========================================================================
- Date: Sat, 12 Nov 1994 21:20:30 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Creating a record with data in FileMaker
-
- If you specify Layout 0 as your object containment the fields will be filled
- in creation order, i.e., the oldest through the newest. This is somewhat
- complicated by having calculated fields between values to be filled, but I've
- had some success specifying those as "". Another reason why I've started
- leaving a few undefined data fields (for future uses) before I add
- calculation fields.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ------ From: Macintosh Scripting Systems, Sat, Nov 12, 1994 ------
-
- Anyone have a better way to do the following:
-
- tell application "FileMaker Pro"
- Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
- end tell
-
- THe above works, but Filemaker assigns the variables to seemingly random
- fields within the database. What I'd like to do is to include the field
- name with the variables so the correct data always goes to the right field,
- but I can't figure out the syntax for that. As it is now, if you have a
- bunch of variables, Filemaker seems to do some weird things.
-
-
-
- -- Michael
- =========================================================================
- Date: Sat, 12 Nov 1994 21:22:27 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): diff of a date
-
- "Me" does refer to the script that's running whether its a compiled script,
- applet or droplet.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
-
- ------ From: Macintosh Scripting Systems, Sat, Nov 12, 1994 ------
-
- "Me" refers to the current script application. If it's a compiled script I
- think
- it
- refers to the front application (ie. the Script Editor if you click the
- 'Run' button). I'm not sure about this though.
- =========================================================================
- Date: Sun, 13 Nov 1994 13:24:03 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: SUBSCRIBE
- In-Reply-To: Your message of "Sat, 12 Nov 94 23:49:09 +1200"
-
- You have been added to the Nisus mailing list. If you want to
- unsubscribe in the future, send the message
-
- unsubscribe nisus your name
-
- to the address listserv@gaea.kgs.ukans.edu
-
- To post messages to the list, send them to nisus@gaea.kgs.ukans.edu.
-
- If more than one message bounces from your mailbox, you will be
- removed from the mailing list. Since more and more commercial
- electronic services are offering Internet gateways, we really
- can't afford bounces. Some subscribers pay for Internet mail out
- of their own pockets, and I don't want them to pay for "junk"
- mail.
-
- There is also an anonymous ftp site associated with the list on
- gaea. Check the nisus directory for updaters and information.
-
- Welcome.
- =========================================================================
- Date: Sun, 13 Nov 1994 11:45:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: I see troubles
-
- did the macscripting mailing list just get subscribed to the nisus mailing list?
- Kee
-
- >You have been added to the Nisus mailing list. If you want to
- >unsubscribe in the future, send the message
- >
- >unsubscribe nisus your name
- >
- >to the address listserv@gaea.kgs.ukans.edu
- >
- >To post messages to the list, send them to nisus@gaea.kgs.ukans.edu.
- >
- >If more than one message bounces from your mailbox, you will be
- >removed from the mailing list. Since more and more commercial
- >electronic services are offering Internet gateways, we really
- >can't afford bounces. Some subscribers pay for Internet mail out
- >of their own pockets, and I don't want them to pay for "junk"
- >mail.
- >
- >There is also an anonymous ftp site associated with the list on
- >gaea. Check the nisus directory for updaters and information.
- >
- >Welcome.
-
- _______________________________________________________________
- Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Sun, 13 Nov 1994 11:53:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Creating a record with data in FileMaker
-
- At 9:57 AM 11/13/94, David Jokinen wrote:
- >>> Anyone have a better way to do the following:
- >>>
- >>> tell application "FileMaker Pro"
- >>> Create Record At Window "Archiver Database" With Data
- >{Var1,var2,var3,etc}
- >>> end tell
- >>>
- >>> THe above works, but Filemaker assigns the variables to seemingly random
- >
- >>It's not really random, it assigns them in the order that the fields were
- >>originally created (tab order and placement on the template makes no
- >>difference).
- >
- >Wayne's right. Open your Define Fields dialog and set the popup menu in the
- >upper-right corner to read "creation order." That's the order you have to
- >deal with. Often, this order is a mess if you've been developing the database
- >over a long time. There is no easy fix. Either duplicate, rename and delete
- >the fields until they make sense, or start over from scratch and re-import
- >the data.
- >
- I thought it used "custom order", which defaults to the same as "creation
- order", although I haven't tried changing that to see if it works.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: ftp://ftp.netcom.com/pub/isis/home.html
- =========================================================================
- Date: Sun, 13 Nov 1994 14:12:25 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Scott Guthery <guthery@AUSTIN.SAR.SLB.COM>
- Subject: FMP and MacHTTPD
-
- Has anybody written a hamster to connect MacHTTPD to FileMaker Pro for doing
- something simple like returning records with a field that contains and entry
- in a HTML form?
- =========================================================================
- Date: Sun, 13 Nov 1994 14:16:16 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
- Subject: Re: I see troubles
-
- In message <199411131951.NAA23625@boombox.micro.umn.edu> Kee Nethery:
- > did the entire macscripting mailing list just get subscribed to the
- > nisus mailing list?
- >
- > >You have been added to the Nisus mailing list. If you want to
- > >unsubscribe in the future, send the message
-
- It would so appear. I hope this is an error on someone's part, and that
- it gets corrected VERY soon.
-
- Stephen E. Collins <URL:http://www.micro.umn.edu/staff/sec>
- University of Minnesota sec@boombox.micro.umn.edu
- Distributed Computing Services (612) 625-1300 Fax: 625-6817
-
- Remember to give back to the net.
- =========================================================================
- Date: Sun, 13 Nov 1994 14:26:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
- Subject: Re: FMP and MacHTTPD
-
- In message <199411132016.OAA24106@boombox.micro.umn.edu> Macintosh Scripting
- Systems writes:
- > Has anybody written a hamster to connect MacHTTPD to FileMaker Pro for doing
- > something simple like returning records with a field that contains and entry
- > in a HTML form?
-
- I'm working on such a critter. You can find a beta version on the
- Web66 SharePages: http://web66.coled.umn.edu/
-
- This has also been a topic of recent discussion on the MacHTTP mailing
- list. You might want to subscribe to it and browse through the
- archives. See the MacHTTP home page for more info:
- http://www.uth.tmc.edu/mac_info/machttp_info.html
-
-
- Stephen E. Collins <URL:http://www.micro.umn.edu/staff/sec>
- University of Minnesota sec@boombox.micro.umn.edu
- Distributed Computing Services (612) 625-1300 Fax: 625-6817
-
- Remember to give back to the net.
- =========================================================================
- Date: Mon, 14 Nov 1994 10:25:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: "Get Terminology" event question
-
- Jon Pugh <jonpugh@NETCOM.COM> taps out:
-
- >Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >>
- >>I don't think I've got a proper understanding of how the AppleScript
- >>"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
- >>is a document called "AppleScript Suite". This describes the get terminology
- >>event, but doesn't say that there are any parameters for it. So how do you
- >>specify what language code and script code you want the terminology for?
- >
- >The direct parameter is a long which describes what language you want the
- >terminology in. Basically, it is simply the script code shifted left 8
- >bits with the country code added into the low byte. This is,
- >coincidentally, the resource id of the aete that you want.
-
- Thanks, Jon! That sounds like just what I need!
-
- To the person who suggested I use the ASDebugging.OSAGetAppTerminology call:
- I would rather not, as I imagine this would force me to follow the AppleScript
- behaviour of launching the application to get its terminology, if the 'scsz'
- resource setting demands this. I'd rather put the choice of whether to do this
- in the hands of the scriptor.
-
- Of course, this suggests that I should provide some way of letting the scriptor
- know that launching the application to get its terminology would be the
- preferred thing to do...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Sun, 13 Nov 1994 17:43:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Madness Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
- Organization: Brown University -- Providence, Rhode Island USA
- Subject: Creating a Log?
-
- I appologise if this is perhaps a stupid question. But is there anyway
- applescript (or anything else for that matter), could be used to create a
- form of log for Appleshare? All it would really need to be able to do is
- monitor to see if and what things are being copied, then save that
- information to a file. It seems like it _should_ be possible on some
- level, Appleshare itself needs to be recieving and sending various calls,
- yes? And all you'd need to do is find out what they are... But then,
- I'm new to applescript, and don't yet have a feel for it's limitations.
- Any comments? Am I totally crazy?
-
- --Madness (Caleb Welton)
- =========================================================================
- Date: Sun, 13 Nov 1994 17:29:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Tricky problem using date comparison
-
- At 07:11 11/13/94, Peter van Aarle wrote:
- >John, my AppleScripting is up to this yet, but I CAN tell you that the way
- >of formatting the message date in Eudora 2.1 is dependent on the settings.
- >When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
- >setting, the data will be a normal format (i.e. mm/dd/yy or something).
- >The way it is set in your copy is the setting called 'Age-sensitive' under
- >the 'Fonts & Display' setting. This is probably VERY difficult to script
- >because not only does the date-format change depending on the age of the
- >message, but the user can also CHANGE the way theis aging works!
-
- Ah...of course.
-
- I haven't been scripting Eudora much (I have ONE script in Eudora's folder
- for OSA Menu, which queues a message to my provider's robot asking for
- month-to-date usage).
-
- Until USWest figures out how to connect (206)437 reliably all 12
- (straight-line, more like 16 as the cable runs) miles to Port Townsend, I
- have little incentive to script Eudora, since it takes several retries on
- average to establish a good connection greater than 2400 baud.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 13 Nov 1994 22:33:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- >Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >
- >To the person who suggested I use the ASDebugging.OSAGetAppTerminology call:
-
- It is important for anyone using this call to remember that it can return a
- purgeable handle if the aete resource is purgeable. In the short term aete
- resources shouldn't be marked purgeable but many are (Hypercard and
- PhotoFlash both are). Some future release of AppleScript might fix this.
-
- Jon
- =========================================================================
- Date: Sun, 13 Nov 1994 23:07:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: Lessons Learned--So Far
-
- I've been working with AppleScript for just a little while, but I had some
- observations that I've made so far which might be useful to other new
- folks. Here goes:
-
- * I started with the Complete AppleScript Handbook...its an ok book, has
- some good samples, but it really has a crappy index.
-
- * I bought the AppleScript SDK from APDA--If you don't have it and wonder
- what's in it, here's what you get for $200 (BTW, I've seen something for
- $150 from MacWarehouse. Not sure what it is, but I'd guess it's different):
- - all of the Apple language manuals, including the ones for scripting
- additions and the finder
- - FaceSpan software and manual; has to do with interfaces, I know little
- else (although I know others here are doing FaceSpan stuff)
- - Scriptable finder (if you don't already have Sys 7.5)
- - a CD ROM with samples plus some relevant develop articles and the two
- volumes of Inside Mac related to AppleScript (Component Manager and IAC)
- - most importantly (for me), a redistribution license for packaging
- AppleScript with a product you intend to distribute. This is easily worth
- the $200, if you want to distribute a product w/AppleScript, inside or
- outside your company. This license does not include the scriptable finder,
- unfortunately (as far as I can tell from reading it).
-
- * BEWARE WORKING WITH EXCEL 4 AND 5 TOGETHER WITH APPLESCRIPT!
- I've been developing AppleScripts for use with a custom C++ application and
- Excel 4 & 5. Excel 5 has a very different aete from Excel 4, and it has
- some nasty tricks. First, it appears to have its own "Open" and "Activate"
- events. Excel 4 has the standard "open" event, but it is different from the
- Excel 5 "Open" event, and AppleScript cannot tell the difference since it
- caches the aete and gets confused about which app it is talking to. I ended
- up with three choices on dealing with this:
- - develop the scripts with Excel 4 only, don't allow the distribution
- version of the script to get exposed to Excel 5. It will work with Excel 5,
- but once exposed, AppleScript will change it to the new format which Excel
- 4 will no longer understand.
- - use the activate command outside of the 'tell Excel' loop, and tell
- Excel to open its own files via Execute "OPEN()". This is the route I have
- chosen, since I want to be able to flip back and forth between versions of
- Excel while developing.
- - call the open appleevent by using the literal syntax in AppleScript.
- This involves using << >> to do something, but I haven't gotten the details
- on that yet. I may switch to using that for the open call, since it turns
- out that OPEN() and AppleScript's open don't behave the same in Excel.
-
- Just takes seeing how Microsoft did this to remind me how much of a pain in
- the butt their products are to work with.
-
- * I've been running the scripts I use directly from my app using OSAExecute
- and OSAExecuteEvent (the latter lets me run a script and send an open
- event, so I can pass in a file). Now we all know that AppleScript has this
- nice little way of asking where an app is if you move the script to another
- machine, and it stores this somewhere or another. Unfortunately, if you run
- the script directly yourself, it has no way to save this information. So I
- now save the script after execution and it now is able to properly cache
- and save the data.
-
- Happy Scripting,
-
- Alex L. Bangs
- bangs@netcom.com/work (415) 854-9000/home (415) 966-8377
- =========================================================================
- Date: Mon, 14 Nov 1994 01:54:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Glenn L. Austin" <glenn_a@EFN.ORG>
- Subject: Re: Getting bounds of desktop
-
- John W. Baxter wrote:
- >At 09:21 10/17/94 (far too long ago), Preston Holmes wrote:
- >>I would like to know if it is possible to get the current desktop size
- >>using the scriptable finder. The ultimate goal is to get the screen size.
- >>Now I know of several great screen osax that could do this but I would like
- >>to have a script that is portable enough to say "requires sys7.5" Asking
- >>non-scripters to go and get large osax packages just for one osax is too
- >>much for the non-scripter (IMHO).
- >
- >I don't remember whether an answer appeared. Here's one way:
- >
- >tell application "Finder"
- > bounds of container window of desktop
- >end tell
- >
- >
- >On my machine, this returns {0, 20, 832, 624}
- >
- >You would want to check out what it does on a multiple-monitor machine.
-
- Two monitor machine, left 640x480 menubar, right 640x480
-
- reply:
- {0, 0, 1280, 480}
-
- No list of monitors, just the bounds of the GrayRgn.
-
- //
- // Glenn L. Austin
- // Computer Wizard and Racing Car Driver
- // Internet: glenn_a@efn.org
- //
- =========================================================================
- Date: Mon, 14 Nov 1994 10:53:48 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: "Get Terminology" event question
-
- > It is important for anyone using this call to remember that it can return a
- > purgeable handle if the aete resource is purgeable. In the short term aete
- > resources shouldn't be marked purgeable but many are (Hypercard and
- > PhotoFlash both are). Some future release of AppleScript might fix this.
-
- While on the subject, I noticed something I thought was kind of odd over the
- weekend. I have a background only scriptable app. I was sending it some
- events from a script running on another machine across the network, and at
- the same time snooping through the app's memory with Zone Ranger. All of a
- sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
- don't support the get terminology event though. Is it possible that the
- System, or the AppleEvent manager loaded this thing into MY heap? After that
- I went and marked the thing purgeable since if it was going to be happening
- on a regular basis, without me knowing, I didn't want it hanging around when
- I needed the memory for something else. But Jon is saying I shouldn't mark it
- purgeable.
-
- What's the story here?
-
- -wayne
- =========================================================================
- Date: Mon, 14 Nov 1994 10:57:21 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Creating an (AppleShare) Log?
-
- > I appologise if this is perhaps a stupid question. But is there anyway
- > applescript (or anything else for that matter), could be used to create a
- > form of log for Appleshare? All it would really need to be able to do is
- > monitor to see if and what things are being copied, then save that
- > information to a file. It seems like it _should_ be possible on some
- > level, Appleshare itself needs to be recieving and sending various calls,
- > yes? And all you'd need to do is find out what they are... But then,
- > I'm new to applescript, and don't yet have a feel for it's limitations.
- > Any comments? Am I totally crazy?
-
- APDA sells an API for monitoring and controlling AppleShare activity.
-
- -wayne
- =========================================================================
- Date: Mon, 14 Nov 1994 11:19:49 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Get a life, Jon.
-
- > >Yeah, Jon, Get a life! .... ;-)
- >
- > I've got one. I just spent opening day at Squaw Valley amidst a very nice
- > snowstorm and plenty of powder. It's about the only pasttime better than
- > hacking. ;)
-
- But you undoubtedly took your PB with you, didn't you, just in case you
- couldn't find any action in the bars! ;-) I remember an old message you
- sent where you were sitting in a bar watching the SuperBowl and working on
- your popup menu XCMD.... I've hacked on planes, in parks, and moving
- vehicles (when someone else was driving), but not yet in a bar. That would
- surely blow my cover! :)
-
- -wayne
- =========================================================================
- Date: Mon, 14 Nov 1994 05:25:52 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Tricky problem using date comparison
-
- Michael Robertson <robertso@SDSC.EDU> writes:
-
- MR> This does not work:
- MR> tell application "Eudora"
- MR> set TheDate to date of message x of mailbox boxToCheck of mail folder ""
-
- MR> Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
- MR> using Eudora's definition of the term 'date' and not Applescripts.
-
- On 11/13/94, Peter van Aarle opined:
-
- Pv> When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
- Pv> setting, the data will be a normal format (i.e. mm/dd/yy or something).
- Pv> The way it is set in your copy is the setting called 'Age-sensitive' under
- Pv> the 'Fonts & Display' setting. This is probably VERY difficult to script
-
- The dictionary says that the property "date" of class "message" is "the
- date as appearing in the message summary". (And this is correct.)
-
- In order to get the date in the form the sender's mailer sent, you have to
-
- get field "date:" of message <mumble>
-
- and hope it's an RFC 822 compliant format.
-
- This *is* a bit weird when dates are age-sensitive.
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Mon, 14 Nov 1994 08:54:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Creating a record with data in FileMaker
- In-Reply-To: <no.id> from "Mike Cohen" at Nov 13, 94 11:53:52 am
-
- --Mike Cohen wrote:
- >
- >I thought it used "custom order", which defaults to the same as "creation
- >order", although I haven't tried changing that to see if it works.
-
- The only time custom order and creation order are the same is when
- you move a field in the field definitions dialog box and then move it
- back to its original position.
-
- -Hades
- =========================================================================
- Date: Mon, 14 Nov 1994 08:57:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Accessing the OSA from C
-
- OK, I see the book on how to do the OSACompile and all that.
-
- How do I check if these traps are available? There doesn't seem to be a
- Gestalt selector for same, nor can I find a way of checking directly.
-
- _Deirdre
- =========================================================================
- Date: Mon, 14 Nov 1994 09:33:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error
- confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Fri, 11 Nov 1994 23:01:13 EST
-
- --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Fri, Nov 11, 1994 11:01 PM
- Subject: MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
- To: Doherty, John; Mobilio, Dominick; Sabatucci, Joe
- File(s): Attach.Txt1
-
- Regarding Message ID : 83500021114991/578230@MAIL1
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 11-NOV-1994 23:01:13.00
- There are 33 messages totalling 1205 lines in this issue.
-
- Topics of the day:
-
- 1. GNU diff droplet
- 2. Scripting WindowShade (2)
- 3. "Get Terminology" event question
- 4. Multiple source files?
- 5. Tricky problem using date comparison (5)
- 6. OSAXen DB (2)
- 7. MacPGP scripts? (2)
- 8. String to Record Class (5)
- 9. Script Editor Clicking Inaccurate (6)
- 10. Eudora "SaveAs" and other menues
- 11. MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
- 12. Eudora script upload (2)
- 13. Scriptable Telnet App?
- 14. Idle time in FaceSpan Application (2)
- 15. Microphone Script help needed
-
- ----------------------------------------------------------------------
-
- Date: Fri, 11 Nov 1994 01:13:51 -0500
- From: Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
- Subject: Re: GNU diff droplet
-
- Fred Terry <pfterry@lks.csi.com> wrote:
- > Tom Pollard has contributed a GNU diff droplet script that I have moved into
- >
- > ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
- >
- [...]
- > file-comparison utility. Be sure to read the Read Me file.
-
- Since it's not archived on gaea separately, here's a copy of the Read
- Me, to give you a better idea of whether this package is going to be
- useful to you or not. I've been using it in more or less its present
- form for the last six or seven months, now.
-
- Cheers,
-
- Tom
-
-
- -----------------------------------------
- AppleScript/QuicKeys droplet for GNU diff
- -----------------------------------------
-
- "GNU diff" is an AppleScript droplet that acts as a "user-friendly"
- wrapper for "diff", the Unix file-comparison utility. QuicKeys 3.0
- is used to drive the actual application. A number of Applescript
- extensions are used, in particular the "Regular Expressions" and "Choose
- Files & Folders" extensions from Mark Alldritt's Script Tools Suite.
-
- --- Installation
-
- To use "GNU Diff", it's only necessary that the "GNU Diff" droplet is in
- the same folder as the rsrcs folder, which holds the "diff" application,
- the dialog window definition and the on-line help file. Also, make sure
- that you've installed required scripting additions. The Script Tools
- Suite is available from many places, including the info-mac archives and
- the scripting archives at 'gaea.kgs.ukans.edu'. You'll probably want to
- put an alias of the GNU diff droplet somewhere where it's easy to drop
- files on it.
-
- --- Why?
-
- I put this together because I know of no other drop-launchable
- application that reports the differences between two files or two
- folders. The available shareware/freeware utilities (Compare-0.9,
- Compare-All, TCXDiff) all have interfaces that are awkward to use for
- multiple file comparisons. Also, I like and understand the format in
- which "diff" reports its results, but none of the other applications
- supports this.
-
- --- Description
-
- "Diff" is a simple port of the corresponding Gnu utility to the Mac by
- Timothy Murphy of Trinity College Dublin <tim@maths.tcd.ie>; it and its
- source code are ftpable from ftp.maths.tcd.ie. It's based on version
- 2.0 of "diff". While functional, its only user interface is
- unfortunately the Think C console i/o dialog. :-( This means, for
- instance, that the input file names have to be typed in to the dialog
- window, with full path names if they're in a different directory from
- the application!
-
- My Applescript droplet hides this abomination by offering a drop-launch
- interface and a (more) friendly dialog for specifying the input and
- output files and the command line options. QuicKeys is used to launch
- the actual application and paste in the command-line arguments that were
- prepared by Applescript. I think it's a good example of how the two
- systems can be used together to script otherwise unscriptable apps.
-
- Although it could be improved, it's now possible to get the diffs of two
- files (a control file and a comparison file) by dropping them on the
- "GNU diffs" app. There's an option to switch the order of the file
- arguments; this is useful since you don't have any control of the order
- in which the files are given to the app when drop-launching. I haven't
- tested all of the many features of the underlying Unix application, but
- those I have tried seem to do what you'd expect them to.
-
- Particularly nice is the ability to drag two folders onto the droplet
- and get comparisons of all matching files in the two.
-
- Online help for the diff command-line options is provided by opening a
- QuicKeys text editor window with the help file, taken largely from the
- info file distributed with the current GNU version of diff. Additional
- documentation for the app is available in the included copy of the Sun
- man pages for diff (sorry if these don't correspond exactly to the
- version that Timothy Murphy ported).
-
- --- Wishlist
-
- Right now, the dialog resource is kept in a separate file. It would be
- better to put it directly into the Applescript droplet, but the Script
- Editor seems to destroy it if you make and save any changes to the script.
- Second, it would be nice to offer a more user-friendly way of choosing
- command-line options, such as a big panel of buttons or a list dialog.
- Finally, I'd prefer to avoid the QuicKey'ing the file i/o dialog
- altogether, but there's no good way to specify the output file for diff using
- only QuicKeys and Applescript (suggestions?).
-
- --- Disclaimer
-
- While it's reasonably bomb-proof on my own system, a Q610 running system
- 7.1 with Applescript 1.1 and QuicKeys 3.0, there can't be any guarantees
- about its stability on any other machine. Any suggestions, gripes and
- especially improvements will be gratefully accepted.
-
- I have a similar droplet for the complementary application, 'patch', but
- it still hasn't been updated to work under AppleScript 1.1. It wouldn't
- take more than a morning, but since it hasn't turned out to be all
- that important for me, it hasn't been done yet. If anyone wants it in
- its current form, they're welcome to it.
-
- My meager contributions to this package are public domain. "Diff" is,
- in principle, "Free Software", and Mark Alldritt's scripting additions
- are freely useable but copyrighted (right?).
-
- Hope this is useful to someone besides me :-)
-
- Tom Pollard
- Nov 5, 1994
-
- -------------------------------------------------------------------------------
- W. Thomas Pollard Department of Chemistry
- pollard@cucbs.chem.columbia.edu Columbia University
- -------------------------------------------------------------------------------
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 01:08:38 EST
- From: David Lloyd <100046.3512@COMPUSERVE.COM>
- Subject: Scripting WindowShade
-
- Scripting WindowShade...
-
- > So, did anyone figure this out. I've decided having a few windows (System
- > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
- > shrunk down is a good thing. However, when I reboot, I have to go through and
- > manually shrink each one. Unfortunately, it appears that since WindowShade is
- > a control panel scripting this may not be possible. Maybe I'll look at a
- > QuicKeys solution. Can I tell QuicKeys to double-click some place?
-
- I saw this, and thought, this is a neat idea.
- I came up with this:
-
- tell application "Finder"
- activate
- copy windows to x
- copy (count of windows) to numWindows
-
- repeat with i from 1 to numWindows
- copy bounds of window i to theBounds
- copy ((item 1 of theBounds) + 30) to itemOne
- copy ((item 2 of theBounds) - 10) to itemTwo
- AutoClick {itemOne, itemTwo}
- AutoClick {itemOne, itemTwo}
- AutoClick {itemOne, itemTwo}
- end repeat
-
- end tell
-
- Unfortunately you can only get the Autoclick osax once you've registered
- the Autotype osax (only a fiver). Auto click simulates the mouse-
- it clicks at the coordinates as given in its parameters.
- There are three clicks, one to activate the window and a double click.
- For some reason, a double click on its own did not work as it should.
-
- See that it also requires the scriptable Finder.
-
- I saved this script as an application
- and put it in my startup folder and it works as expected.
-
- Dave L.
-
- ------------------------------
-
- Date: Thu, 10 Nov 1994 22:40:36 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >
- >I don't think I've got a proper understanding of how the AppleScript
- >"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
- >is a document called "AppleScript Suite". This describes the get terminology
- >event, but doesn't say that there are any parameters for it. So how do you
- >specify what language code and script code you want the terminology for?
- >
- >The only application I've got at home with dynamic terminology is the
- >Scriptable Finder. When I try sending it a get terminology event, I get an
- >error saying some parameter is missing.
-
- The direct parameter is a long which describes what language you want the
- terminology in. Basically, it is simply the script code shifted left 8
- bits with the country code added into the low byte. This is,
- coincidentally, the resource id of the aete that you want.
-
- For English, this is 0. French is 1. Japanese has two, 11 for Romanji and
- 267 for Kanji.
-
- Jon
-
- ------------------------------
-
- Date: Thu, 10 Nov 1994 22:40:47 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Multiple source files?
-
- >> Coming from a tradition of small and concise C source files, I'd like to
- >> use multiple source files for my compiled scripts and applications. Is
- >> there a way I may do this with the standard AS package?
- >>
- >Yes. Have a look at the chapter on script objects in the AppleScript
- >Language Reference.
- >
- >Basically, you just save a script with a few handlers in it, and load it as
- >a script object in your calling routine (myScript = load script "Foo").
- >Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
- >bar, bar of Foo...)
-
- An alternative, which is not simply the AppleScript package, is to use my
- ScriptServer application and Leonard's OSA Menu to run an AppleScript which
- will combine several files (ala #include) and compile the resulting file.
- I have included a simple example script with ScriptServer, but I've left
- the #include as an exercise for the reader.
-
- If anyone wants to send me a script that does includes, I'll put it into
- the ScriptServer package. Otherwise it has to wait until I get some time
- to write it, which ain't going to happen any time soon because I just got a
- couple of Newtons and won't be having much free time until I get them doing
- everything the way I want them too. ;)
-
- Jon
-
- ------------------------------
-
- Date: Thu, 10 Nov 1994 22:57:47 -0700
- From: MR Mac - Michael Robertson <robertso@SDSC.EDU>
- Subject: Tricky problem using date comparison
-
- Here's the problem:
-
- I have a script which I want to do a date comparison. The problem is that I
- have to do this date comparison on a chunk of data I get within a loop
- while talking to another app. This app has its own definition of what
- 'date' means and refuses to work. Here's a simple example:
-
- This works:
- ----------
- set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
- set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
- ^ ^
- | |
-
-
- This does not work:
- -------------------
- tell application "Eudora"
- repeat (for a whole bunch of messages)
- set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- ^
- | (this line works
-
- set diff to (date TheDate) - (date "Monday, October 31, 1994")
- ^ ^
- | | (this line won't)
-
- if diff meets some criteria
- munge the message
- end if
-
- end repeat
- end tell
-
-
- Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
- using Eudora's definition of the term 'date' and not Applescripts. I can't
- very well jump out of Eudora (end tell) because I'm right in the middle of
- a repeat loop and I have to get assign the value of diff from criteria I
- grab from Eudora. There must be some easy work around for this one. Can
- some expert enlighten me?
-
- How about Jon P.? Do you think you could stop writing cool OSAXen for the
- *whole* AppleScript community and take time out to spoon feed me
- AppleScript basics? :)
-
-
-
- -- Michael
-
-
- _____________________________________________________________________________
- Michael Robertson - MR Mac (619) 534-5107 office
- Macintosh Business Consultant (619) 989-8943 pager
- San Diego Supercomputer Ctr. (619) 534-5152 fax
-
- Internet, America Online robertso@sdsc.edu
- _____________________________________________________________________________
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 03:17:12 -0500
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: OSAXen DB
-
- I've placed in the incoming directory of gaea a FileMaker Pro database of
- all the scripting additions I could find lying around on my hard-drives.
- There are over 300 commands, including syntax. See the readme enclosed for
- notes on its weaknesses and possible confusions.
-
- Barry
- bchern@freenet.columbus.oh.us
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 10:49:56 +0100
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Tricky problem using date comparison
-
- > I have a script which I want to do a date comparison. The problem is that I
- > have to do this date comparison on a chunk of data I get within a loop
- > while talking to another app. This app has its own definition of what
- > 'date' means and refuses to work. Here's a simple example:
- >
- > This works:
- > ----------
- > set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
- > set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
- <snip,snip>
- > This does not work:
- > -------------------
- > tell application "Eudora"
- > repeat (for a whole bunch of messages)
- > set TheDate to date of message x of mailbox boxToCheck of mail folder
- ""
- > ^
- > | (this line works
- >
- > set diff to (date TheDate) - (date "Monday, October 31, 1994")
- > ^ ^
- > | | (this line won't)
- >
- > if diff meets some criteria
- > munge the message
- > end if
- >
- > end repeat
- > end tell
-
- Seems like you could do the following though:
-
- repeat (for a whole bunch of messages)
- tell application "Eudora"
- set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- end tell
-
- set diff to (date TheDate) - (date "Monday, October 31, 1994")
-
- tell application "Eudora"
- .... .more stuff
- end tell
-
- > How about Jon P.? Do you think you could stop writing cool OSAXen for the
- > *whole* AppleScript community and take time out to spoon feed me
- > AppleScript basics? :)
-
- Yeah, Jon, Get a life! .... ;-)
-
- cheers,
- -waybe
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 08:56:17 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: OSAXen DB
-
- Everyone,
-
- >I've placed in the incoming directory of gaea a FileMaker Pro database of
- >all the scripting additions I could find lying around on my hard-drives.
- >There are over 300 commands, including syntax. See the readme enclosed for
- >notes on its weaknesses and possible confusions.
-
- You'll find Barry's database in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/OSAXenDB.sit.hqx
-
- You'll also find the latest versions of Aladdin's DropStuff and StuffIt
- Expander in
-
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/DropStuff_with_EE_3.5.2_Ins
- taller.hqx
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/StuffIt_Expander_3.5.2_Inst
- all.hqx
-
- Enjoy.
-
- pf
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 09:05:08 U
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: MacPGP scripts?
-
- Subject: Time:8:57 AM
- OFFICE MEMO MacPGP scripts? Date:11/11/94
- >From the title of several recent messages about Eudora and MacPGP I'm assuming
- that the latter is scriptable. Looking at it in ResEdit though I find that it
- has no 'aete' resource for Frontier to sift through. Nor does Gaea's index list
- any scripts for it. So the questions are:
- 1) Is MacPGP really scriptable?
- 2) Does anyone have any scripts for it they'd be willing to upload to Gaea?
-
- Thanks,
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 10:46:08 -0500
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Tricky problem using date comparison
-
- >This app has its own definition of what
- >'date' means and refuses to work.
-
- I don't have Eudora to see how it handles dates, but I once ran into
- something like this with the offset command. Rather than break up my main
- script, I sent the job to a subroutine, which was governed by AppleScript
- alone, returning any necessary data (a boolean, in your case) to the main
- script.
-
- Danny Goodman
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 08:27:59 PST
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Scripting WindowShade
-
- Here's another version of the "Toggle WindowShade" script.
-
- property pClickPoint : {0, -1}
- property pClickTimes : 2
-
- on run
- tell application "Finder"
- activate
- repeat with iWindow in windows
- open iWindow
- tell application "PreFab Playerx"
- click location pClickPoint times pClickTimes
- end tell
- end repeat
- end tell
- end run
-
- I requires the Scriptable Finder and PreFab Player.
-
- David Jokinen
- Ground Zero Software
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 08:32:17 PST
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: Tricky problem using date comparison
-
- >This does not work:
- >-------------------
- >tell application "Eudora"
- > repeat (for a whole bunch of messages)
- > set TheDate to date of message x of mailbox boxToCheck of mail folder ""
- > ^
- > | (this line works
- >
- > set diff to (date TheDate) - (date "Monday, October 31, 1994")
- > ^ ^
- > | | (this line won't)
- >
- > if diff meets some criteria
- > munge the message
- > end if
- >
- > end repeat
- >end tell
-
- Since tell blocks don't persist across handler calls, you could stick your
- date calculation in a separate handler:
- ***
- tell application "Eudora"
- repeat ...
- do somthing with theDate...
- set diff to CalcDiff(theDate)
- do some more stuff with theDate...
- end repeat
- end tell
-
- on CalcDiff(aDate)
- return aDate - (date "Monday, October 31, 1994")
- end CalcDiff
- ***
- David Jokinen
- Ground Zero Software
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 12:11:26 -0500
- From: Daniel Berlinger <Daniel@CIRCUMTECH.COM>
- Subject: Re: MacPGP scripts?
-
- --part_AAE90FEE0009B19400000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- > 1) Is MacPGP really scriptable?
-
- The unofficial version 2.6 universal which was released with the same
- "limitations" as other unliscensed version has the aete resource. It is my
- understanding that MIT is adding scripting to the official version and have
- decided to wait for that.
-
- Additionally, the 2.6 version will not read versions older than 2.3, I
- believe, but the universal version does.
-
- Daniel
-
- --part_AAE90FEE0009B19400000002
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- Daniel Berlinger Daniel@circumtech.com
- "I wasn't thinking...
- ...obviously this doesn't matter to my point."
- Administrator of Information Systems Circumstance Technology
- --part_AAE90FEE0009B19400000002--
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 11:35:38 -0600
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: String to Record Class
-
- Greetings-
-
- I have an html form running on a web that writes information out to a file.
- As you may know this information is tagged with a field name. This got me
- thinking about applescripts record class so I munged the data it writes to
- the file to look just like a record - example
- {firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- to read that data back in at a later time and have applescript see it as a
- record class object. When you read the file of course you get a string -
- can you coerce this string to a record? The simple - newData as record -
- does not seem to work. Any ideas.
-
- Best-
-
- Greg
-
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Greg Hiner (512) 471-7134 ext.82
- Computer Support hiner@mail.utexas.edu
- Garrison Hall 318
- University of Texas at Austin
- Austin, TX 78712
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 11:45:15 -0600
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Script Editor Clicking Inaccurate
-
- Hello,
-
- Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- 7.5? Selecting text in the editor isn't accurate and I'm getting a little
- frustrated. I have to click close to some text and cursor over to select what
- I want. Clicking is off by one or two characters and its a real problem. I
- didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- file over from the old System. Could this have something to do with this
- problem?
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 19:28:19 +0100
- From: Christoph Dohrmann <cd@GUIDO.ZKM.DE>
- Subject: Eudora "SaveAs" and other menues
-
- For some reason I need to save my messages into ASC Files (alfa) after I
- used the menu "Edit|Wrap selection" to limit line length...
- Online I can do this using the appropriate menues...
- I would like to automate this and some more work I need to do in advance with -
- you guessed it - Applescript.
-
- Since I need only the body (field "" of message 0) I could copy this and
- write it into a file using the FileI/O osax.
- BUT I thought about using the "save" command that is included with eudora's
- core suite... which syntax is described as
-
- >save: Save an object
- > save reference -- the object to save
- > [in alias] -- the file in which to save the object
- > [as type class] -- the file type of the document in which to save...
-
-
-
- telling Eudora to
-
- > save field "" of message 0 in "TESTFILE" as text
-
- results in a
-
- >> "field "" does not understand the save message..."
-
- Any Ideas....
-
- Than_ in advance
- .
- .
- .
- .
- X
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 10:36:18 U
- From: Chuck Pliske <chuckp@U.WASHINGTON.EDU>
- Subject: Re: MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
-
- I have been trying to use the boolean file properties but they don't seem to
- work:
-
- on open xyzzy
- tell application "Finder"
- repeat with f in xyzzy
- if the folder of f then
- ...
- end if
- end repeat
- end tell
- end open
-
- The dictionary sez there are a few of these: locked (which works), and alias
- and folder (which don't seem to work)
-
- An apple example (synchronize folders) uses the (f as text) and looks for a
- trailing ":" to indicate a folder, but it seems as though there is a testable
- property.
-
- Am I doing something wrong?
-
- thanks,
-
- Chuck
-
- This mail courtesy of Apple's System 7.5 and StarNine's Internet Gateway
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 11:02:14 -0800
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
-
-
- I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
- back from an Apple test engineer asking how to repro it. I sent a really
- detailed bug report (including step by step instructions) and I think they
- then reproed it and sent it onto engineering.
-
- In my case it only happened on a Power Mac (any model) with System 7.5 with
- the WorldScript Power Adaptor extension loaded. The offset seemed related
- to the number of style changes in a line of text. Removing the WorldScript
- Power Adaptor extension solved the problem, but TextEdit is then as slow as
- hell.
-
- This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 19:36:19 GMT
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Eudora script upload
-
- I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
- automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
- this is of interest. I'll appreciate any and all suggestions, comments,
- etc. If anyone can tell me how to move the insertion point in a Eudora msg
- body, I'll do an improved version right away.
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 14:47:22 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: String to Record Class
-
- >I have an html form running on a web that writes information out to a file.
- >As you may know this information is tagged with a field name. This got me
- >thinking about applescripts record class so I munged the data it writes to
- >the file to look just like a record - example
- >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >to read that data back in at a later time and have applescript see it as a
- >record class object. When you read the file of course you get a string -
- >can you coerce this string to a record? The simple - newData as record -
- >does not seem to work. Any ideas.
- >
- > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- > Greg Hiner (512) 471-7134 ext.82
- > Computer Support hiner@mail.utexas.edu
- > Garrison Hall 318
- > University of Texas at Austin
- > Austin, TX 78712
-
- Greg,
- What it sounds like you want is a string of records:
-
- set a to {{Name:"Mark",Address:"hadfield@sickkids.on.ca"},{Name:"Greg",...}}
-
- You can then 'get record 1 of a'
-
- I'm not sure if this is a full answer for you maybe just a direction to
- look at...
-
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 13:58:23 -0600
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: Scriptable Telnet App?
-
- >>Does anyone know of a scriptable Telnet App?
- >>
- >>Thanks,
- >>
- >>Tomo
- >
- >My TCP/IP Scripting Addition includes a Telnet sample script... you can
- >modify it to do whatever you'd like during a telnet session.
- >
- >You can find it at gaea.kgs.ukans.edu, in
-
- snip
-
- >Let me know if you have any questions on using it or customizing it...
- >
- >-- Atul
- >
-
-
- Is it possible to write a full featured terminal emulation package using
- this approach, with regard for terminal emulation etc ? What are the
- issues.?
-
- If this is possible I might give it a try BUT if there are obstacles I
- would like to know of them now rather than when I am down the road.
-
- Frank C.
- R&E
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 11:08:25 -0800
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: String to Record Class
-
- >I have an html form running on a web that writes information out to a file.
- >As you may know this information is tagged with a field name. This got me
- >thinking about applescripts record class so I munged the data it writes to
- >the file to look just like a record - example
- >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >to read that data back in at a later time and have applescript see it as a
- >record class object. When you read the file of course you get a string -
- >can you coerce this string to a record? The simple - newData as record -
- >does not seem to work. Any ideas.
-
- Why munge it into a text file?
-
- If you store it as a property of a script object then you can load and save
- the script object in a script document with very little hassle and still
- have all the information contained inside the script object accessible in
- an easy way. You could have a property contain a list of lists of records
- contain lists of records and have is saved and read perfectly. Or would you
- rather rewrite the AppleScript parser to parse the text stream representing
- these objects.
-
- When a system gives you (a kind of) object oriented persistent store its
- better to make use of it than to perpetuate the "stream of chars" files as
- a storage medium.
-
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:05:34 -0500
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
-
- Upgraded from 7.1 to 7.5 on a centris, no problem (had AS 1.1 both before
- and after)
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 14:22:27 -0600
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Idle time in FaceSpan Application
-
- Aghhhhhhhhhhh helllllllpppppp!
-
- What is the problem with the following piece of script.
-
- on idle
- pollTheNet()
- repurn delayTime
- end idle
-
- It is part of a FaceSpan application that I have written that keep
- an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
- do "pollTheNet()" and with the result update a display on my Mac. However
- what happens is that it just continually does "pollTheNet()" which dosent
- do anything for my productivity as my Mac get tied up with repeated polls.
- ( currently I just hit a button to get the lates condition of things ).
-
- I am obviously missing something fairly basic here but I have been
- fixated on this for so long that I can't see it any more. I have
- implemented a similar procedure with an AppleScript application and that
- works fine with any delay time I care to specify but I would prefer to run
- a FS application.
-
- Is there some concideration to the way in which FS does it as
- opposed to AS.
-
- incidentally 'set idle delay of application "foo" to whatever' is not what
- I want.
-
- Frank C.
- R&E
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:41:51 -0500
- From: Troy Heninger <troyh@NETCOM.COM>
- Subject: Re: Idle time in FaceSpan Application
-
- At 2:22 PM 11/11/94 -0600, Frank Concannon wrote:
- >Aghhhhhhhhhhh helllllllpppppp!
- >
- > What is the problem with the following piece of script.
- >
- >on idle
- > pollTheNet()
- > repurn delayTime
- >end idle
- >
- > It is part of a FaceSpan application that I have written that keep
- >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
- >do "pollTheNet()" and with the result update a display on my Mac. However
- >what happens is that it just continually does "pollTheNet()" which dosent
- >do anything for my productivity as my Mac get tied up with repeated polls.
- >( currently I just hit a button to get the lates condition of things ).
- >
- > I am obviously missing something fairly basic here but I have been
- >fixated on this for so long that I can't see it any more. I have
- >implemented a similar procedure with an AppleScript application and that
- >works fine with any delay time I care to specify but I would prefer to run
- >a FS application.
- >
-
- As far as I understand, the delay time has always been specified in
- seconds, not minutes. That might explain why it continually calls
- pollTheNet(). Try multiplying the number by 60 and see if that helps.
-
- ______________________________________________________________________
- | Troy Heninger | That which you persist in doing becomes easier. |
- | troyh@netcom.com | Its not that the nature of the thing changes, but |
- | | your ability to do it increases. (Heber J. Grant) |
- ______________________________________________________________________
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:04:08 -0600
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: String to Record Class
-
- >>I have an html form running on a web that writes information out to a file.
- >>As you may know this information is tagged with a field name. This got me
- >>thinking about applescripts record class so I munged the data it writes to
- >>the file to look just like a record - example
- >>{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
- >>to read that data back in at a later time and have applescript see it as a
- >>record class object. When you read the file of course you get a string -
- >>can you coerce this string to a record? The simple - newData as record -
- >>does not seem to work. Any ideas.
- >
- >Why munge it into a text file?
- >
- >If you store it as a property of a script object then you can load and save
- >the script object in a script document with very little hassle and still
- >have all the information contained inside the script object accessible in
- >an easy way. You could have a property contain a list of lists of records
- >contain lists of records and have is saved and read perfectly. Or would you
- >rather rewrite the AppleScript parser to parse the text stream representing
- >these objects.
- >
- >When a system gives you (a kind of) object oriented persistent store its
- >better to make use of it than to perpetuate the "stream of chars" files as
- >a storage medium.
- >
-
- Well yes but let me walk through this a bit because I still think there is
- a problem.
-
- First I'm taking a long string passed by MacHTTP to my script. Something like:
- "firstname=Greg&lastname=Hiner&department=American+Studies&position=Graduat
- e&interests=Space+for+something+interesting+to+say%2C+if+you+have+something+
- to+say.+Blah%2C+Blah."
-
- So first off I'm starting with a string that is being handed to me by
- another program. I then munge this into a string that looks like a record
- (this maybe stupid I guess but hell it was worth a shot). Now I've got
- something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
- save this string as a property but it still isn't a record.
-
- So I guess the real basic question is can you take a string handed to you
- by another program and turn that string into a record class object?
-
- If I'm missing something real basic here don't assume I know what I'm
- talking about.
-
- Thanks,
-
- Greg
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 14:45:34 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Eudora script upload
-
- Hi folks,
-
- >I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
- >automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
- >this is of interest. I'll appreciate any and all suggestions, comments,
- >etc. If anyone can tell me how to move the insertion point in a Eudora msg
- >body, I'll do an improved version right away.
-
- This can be found in
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/EudoraAutoReply.sit.hqx
-
- Have fun.
-
- pf
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:18:22 PST
- From: David Jokinen <GroundZero@EWORLD.COM>
- Subject: Re: String to Record Class
-
- >So first off I'm starting with a string that is being handed to me by
- >another program. I then munge this into a string that looks like a record
- >(this maybe stupid I guess but hell it was worth a shot). Now I've got
- >something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
- >save this string as a property but it still isn't a record.
-
- Hmm... Let me ask a stupid question:
-
- As long as you're munging, why not munge directly to a record? Or at least a
- list? I've had a lot of success with Wayne Walrath's "tokenize" osax for this
- kind of munging. In fact, one of Wayne's example scripts includes a munger
- for an Internet header that looked a lot like your example.
-
- As far as writing to a file, try this:
- ***
- set theList to {{firstname:"Greg", lastname:"Hiner"}, {firstname:"David",
- lastname:"Jokinen"}}
-
- -- open a file
- write theList to theFileRef
-
- -- take a nap then reopen the file
- set theList to read theFileRef as list
- ***
- David Jokinen
- Ground Zero Software
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:37:17 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Tricky problem using date comparison
-
- >>This app has its own definition of what
- >>'date' means and refuses to work.
- >
- >I don't have Eudora to see how it handles dates, but I once ran into
- >something like this with the offset command. Rather than break up my main
- >script, I sent the job to a subroutine, which was governed by AppleScript
- >alone, returning any necessary data (a boolean, in your case) to the main
- >script.
-
- After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
- date as the string "Tuesday", I decided I didn't want to deal with that
- (for today it's a time, for this week its a day name, otherwise its a
- date/time string). There may well be an "as ..." phrase one can use to get
- a known date format from Eudora.
-
- Maybe over the weekend, if I don't see other posts.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 15:41:38 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Script Editor Clicking Inaccurate
-
- >Hello,
- >
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem. I
- >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
-
- Yes...and indeed it is annoying. It's not restricted to Script
- Editor...you can induce SimpleText to do much the same thing. It seems to
- be related to heavily mixed type faces on a single line. [I think it's
- also related to Script Editor's insistence, here, on drawing the right ends
- of long lines under the scroll bar...a problem shared with alternate
- dictionary viewers.]
-
- On my machine (8100), this problem predates System 7.5, by the way.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 18:18:18 +0000
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Script Editor Clicking Inaccurate
-
- I copied my prefs
- >file over from the old System. Could this have something to do with this
- >problem?
- >
- >Dennis L. Whiteman
- >THE ULTIMATE FREELANCER
- >ultimate@mail.icon.net
-
- ScrAp the prefs file and start up the app, it will make new ones. Those are
- almost always your culprit.
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 19:39:40 -0600
- From: Matt Brown <c624618@SHOWME.MISSOURI.EDU>
- Subject: Re: Script Editor Clicking Inaccurate
-
- At 11:45 AM 11/11/94, Dennis Whiteman wrote:
- >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
- >7.5? Selecting text in the editor isn't accurate and I'm getting a little
- >frustrated. I have to click close to some text and cursor over to select what
- >I want. Clicking is off by one or two characters and its a real problem.
-
- Yes, I have this same problem. The strange thing is that it just began, and
- I have changed nothing in my system configuration! Any input would be
- greatly appreciated.
-
- Matt Brown | "Our scientific power has outrun our
- | spiritual power. We have guided
- c624618@showme.missouri.edu | missiles and misguided men."
- http://www.missouri.edu/~c624618 | --Martin Luther King Jr.
-
- ------------------------------
-
- Date: Fri, 11 Nov 1994 20:46:14 -0800
- From: { brad brace } <bbrace@NETCOM.COM>
- Subject: Microphone Script help needed
-
- Can anyone provide some assistance with the following Microphone script?
- I think I'm close to making this work...?
-
- Settings File = MicroPhone Settings
- Script Name = 12-hr
- Command Key = =
- F-Key =
- Menu = YES
- Button = NO
- Version = 4000
- System = Macintosh
-
- This project requires a script which will upload one jpeg and one gif file
- to my dial-up Internet ftp account every 12 hours. I plan to scan a dozen
- or so photos at a time into my home computer (they will be consecutively
- named, ie. 0001.gif, 0002.gif, 0003.gif... 0001.jpg, 0002.jpg,
- 0003.jpg...etc), and placed in the folder named 12-hr. The first two of
- these scans need to be renamed to 12hr.gif and 12hr.jpg prior to being
- uploaded (where they will replace the identically named, previous files of
- the last 12 hours). The modem then disconnects and the process repeats 12
- hours later.
-
- The imagery for this project has been fifteen years in the making, and is an
- appropriate extension from the physically-published ISBN-books (see file
- in my ftp-subdir). There are several thousand, sequenced, grey-scale
- images that are to be electronically published/posted once every 12 hours
- for years to come. Needless to say I need to automate this procedure and
- try and curtail as many glitches as possible at the outset. Any additional
- assistance/ideas are gratefully appreciated.
-
-
-
- 1 Set Variable * 12-hr from Folder Dialog "'12-hr'"
- 2 Wait Until Time "'12:00'"
- 3 Set Variable * count from Expression "0"
- 4 While Expression "count < 12"
- 5 Set Variable * filename from Expression "'0000' & count & '.jpg'"
- 6 Set Variable * filename from Expression "'0000' & count & '.gif'"
- 7 File * Rename "filename,'12hr.jpg'"
- 8 File * Rename "filename,'12hr.gif'"
- 9 Dial Service * "'netcom'"
- 10 Wait for Text "'login'"
- 11 Send Text String "'bbrace^M'"
- 12 Wait for Text "'password:'"
- 13 Send Text String "'xxxx^M'"
- 14 Repeat
- 15 Until Success
- 16 Send File * ZMODEM Binary "'12hr.jpg'"
- 17 Send File * ZMODEM Binary "'12hr.gif'"
- 18 Send Text String (protected) "'mv 12hr.* ~ftp/pub/bbrace'"
- 19 Send Text String (protected) "'chmod a+r ~ftp/pub/bbrace/*'"
- 20 Send Text String (protected) "'lo'"
- 21 File * Rename "'12hr.jpg',filename"
- 22 File * Rename "'12hr.gif',filename"
- 23 Set Variable * count from Expression "count +1"
- 24 End While
-
-
- (Does the 12hr-folder need to be in the Microphone folder?)
- (Will Microphone be able to wake my Mac up every 12hrs?)
-
- --
- { brad brace } bbrace@netcom.com
- ftp://ftp.netcom.com/pub/bbrace/bbrace.html ~finger for pgp
-
- ------------------------------
-
- End of MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)--
- =========================================================================
- Date: Mon, 14 Nov 1994 08:57:41 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: I see troubles
- In-Reply-To: Your message of "Sun, 13 Nov 94 14:16:16 CST"
-
- Folks,
-
- >In message <199411131951.NAA23625@boombox.micro.umn.edu> Kee Nethery:
- >> did the entire macscripting mailing list just get subscribed to the
- >> nisus mailing list?
- >>
- >> >You have been added to the Nisus mailing list. If you want to
- >> >unsubscribe in the future, send the message
- >
- >It would so appear. I hope this is an error on someone's part, and that
- >it gets corrected VERY soon.
-
- I don't think there is a need for panic. I just checked the Nisus and the
- MacScripting lists, and don't see any crossed subscriptions. My guess is that
- someone accidentally sent this into the list by mistake.
-
- Unless, of course, someone has actually gotten a Nisus message who isn't
- subscribed to the Nisus mailing list.....
-
- pf
- =========================================================================
- Date: Mon, 14 Nov 1994 08:48:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: FMP Repeating Fields and Excel WorkSheets
-
- >Actually, I think it's OK to overfill a range. I find it easiest to write a
- >simple "fillRange" handler, which takes the Excel range name and list data
- >as two parameters. It would then find the number of rows, the count of the
- >list, and add null string list items to fill up the list (set end of
- >theList to "").
-
- You are right -- if only it was the other way around it would make life
- easier:-)
-
- The problem is when you don't have rectangular arrays, that is one row
- falls short. I am working on a hack for this that just pads out the short
- sublists with null items but it does mean you have to cycle through all of
- the data with AppleScript which removes the advantage of doing one large
- transaction with Excel.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 14 Nov 1994 09:08:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Accessing the OSA from C
-
- At 8:57 AM 11/14/94, Deirdre Saoirse-Savino wrote:
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
- >
- >_Deirdre
-
- That isn't really a trap - it's a call to the scripting component. To see
- if it's available, make sure the component manager is installed, and then
- check for the presence of one or more scripting components.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: ftp://ftp.netcom.com/pub/isis/home.html
- =========================================================================
- Date: Mon, 14 Nov 1994 12:01:20 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Please Read (was Re: SUBSCRIBE)
-
- Everyone,
-
- Kevin Purcell has pointed out that I'm the culprit of the bogus "You are now
- subscribed to the Nisus mailing list".
-
- >I would hope not!
- >
- >You sent this to the MacScripting list, Fred!
-
- I'm not sure what bleary-eyed fever caused this, but please accept my earnest
- apologies.
-
- Also, Please stop sending me unsubscribe messages! Dealing with those have
- been my penance this morning for such a bozo error.
-
-
- Again, sorry for the confusion.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Mon, 14 Nov 1994 12:19:22 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Frontier Address Self-ident
-
- Reply to: Frontier Address Self-identity
- Does anyone know a way of having a Frontier script ask what it's own name
- is?
- For example, if a script located at root.scratchpad.testscript is running,
- how can I get it to return "testscript"
- I want to achieve this so that I can write a generic script that will act
- on a file whose name matches the script name. A date flag also would match
- the file name.
-
- Thanks ahead of time...
-
- --Richard Petty
- rwvr90@email.sps.mot.com
-
- Motorola
- Austin, Texas
- =========================================================================
- Date: Mon, 14 Nov 1994 10:33:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Accessing the OSA from C
-
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- The Gestalt selector is gestaltAppleEventsAttr ('evnt')
-
- If bit number 2 (1 << gestaltOSLInSystem) is set, the OSA trap is
- available (or the right shared library is in place on a Power Mac).
-
- I think.
-
- [This stuff is in Inside Mac, Operating System Utilities, chapter 1. Apple
- has been a little inconsistent as to whether such things are also in the
- individual chapters and volumes, if they are in the Gestalt chapter's
- listing.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 14 Nov 1994 10:33:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Lessons Learned--So Far
-
- At 23:07 11/13/94, Alex L. Bangs wrote:
- >* I've been running the scripts I use directly from my app using OSAExecute
- >and OSAExecuteEvent (the latter lets me run a script and send an open
- >event, so I can pass in a file). Now we all know that AppleScript has this
- >nice little way of asking where an app is if you move the script to another
- >machine, and it stores this somewhere or another. Unfortunately, if you run
- >the script directly yourself, it has no way to save this information. So I
- >now save the script after execution and it now is able to properly cache
- >and save the data.
-
-
- Provide a "context" (a compiled script object). Stash it in your
- preferences file (or stash a different one in each docuemnt's resource
- fork, if you prefer). "Load" the context, and pass the resulting OSAID
- value in the context parameter to the other calls.
-
- Let me know whether it works for you...it does what little I've asked of it.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 14 Nov 1994 10:33:39 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: "Get Terminology" event question
-
- >> It is important for anyone using this call to remember that it can return a
- >> purgeable handle if the aete resource is purgeable. In the short term aete
- >> resources shouldn't be marked purgeable but many are (Hypercard and
- >> PhotoFlash both are). Some future release of AppleScript might fix this.
- >
- >While on the subject, I noticed something I thought was kind of odd over the
- >weekend. I have a background only scriptable app. I was sending it some
- >events from a script running on another machine across the network, and at
- >the same time snooping through the app's memory with Zone Ranger. All of a
- >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
- >don't support the get terminology event though. Is it possible that the
- >System, or the AppleEvent manager loaded this thing into MY heap? After that
- >I went and marked the thing purgeable since if it was going to be happening
- >on a regular basis, without me knowing, I didn't want it hanging around when
- >I needed the memory for something else. But Jon is saying I shouldn't mark it
- >purgeable.
- >
- >What's the story here?
-
- If you mark the 'aete' purgeable, Script Editor (and some script editing
- alternatives) will sometimes "lose" parts of the "Dictionary". Sometimes
- all of it, sometimes just the headers, sometimes it keeps just the keywords
- without the descriptions. None of those is useful.
-
- One would hope that when AppleScript is finished with the 'aete' in your
- heap, AppleScript will release it. No guarantees (one would have hoped
- that Script Editor could deal with purgeable 'aete' resources, too).
-
- AppleScript installs a System event handler for the Get AETE event. So, in
- effect, your app has a handler for that event, and it would appear to load
- the resource into your heap (it almost has to do it that way, since it
- can't reach into your resource fork directly across the network).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 14 Nov 1994 12:36:02 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: I see troubles
-
- >Unless, of course, someone has actually gotten a Nisus message who isn't
- >subscribed to the Nisus mailing list.....
- >
- >pf
-
- That would be me. I don't even know what this Nisus list is...
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Mon, 14 Nov 1994 12:42:13 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Cron and AppleScript
-
- Rather than have a script application stay open and have an idle handler do
- something a couple times a day, I've been using Chris Johonson's Cron to
- launch the script application. This has worked on a couple of scripts, but
- I've run into a problem with a script that loads and saves a script object.
-
- All I wanted to do is check a mailbox, see if any new mail has arrived,
- process it, reset the lastChecked date and exit. The processing and all
- that works, but I had trouble (because of a bug) with the lastChecked
- property . I initially tried:
-
- Property lastChecked : date "11/11/94"
- -- process stuff
- set lastChecked to Current Date
-
- This was saved as a application (no startup screen and quit when complete).
- My bug made it appear that the lastChecked property never got set to the
- current date. The next attempt was to use Cron and the load/store script
- extensions. In the preferences folder, I saved the property statement above
- in a compiled script "LastPrint". The following is an extract of my code,
- modifed to try to find the problem:
-
- set fn to (path to preferences folder as string) & "lastPrint" as alias
- set scrpt to load script fn
- -- process here
- set lastChecked of scrpt to current date
- store script scrpt in fn replacing yes
- display dialog (lastChecked of d as string)
-
- If I save the above code as an application and double click it it works
- fine. If I launch it from Cron with:
-
- 9 10 * * * nobody appName
-
-
- I get an AS error dialog box with "The variable fn is not defined". If you
- choose the edit option, the error points to fn in the "store script" line.
- I got my original solution to work, but wonder why this is not working.
- I've cc'd Chris with this.
-
-
-
-
- Steve Alex (steve_alex@aidt.edu)
-
- _/_/_/ _/ _/_/_/_/ _/_/_/_/ Alabama Industrial
- _/ _/ _/ _/ _/ _/ Development Training
- _/_/_/_/_/ _/ _/ _/ _/ 75 TechnaCenter Dr.
- _/ _/ _/ _/ _/ _/ Montgomery AL, 36117
- _/ _/ _/ _/_/_/_/ _/ (205) 242-2675
- =========================================================================
- Date: Mon, 14 Nov 1994 10:44:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Frontier Address Self-ident
-
- > Reply to: Frontier Address Self-identity
- > Does anyone know a way of having a Frontier script ask what it's own name
- >is?
- > For example, if a script located at root.scratchpad.testscript is running,
- >how can I get it to return "testscript"
- > I want to achieve this so that I can write a generic script that will act
- >on a file whose name matches the script name. A date flag also would match
- >the file name.
- >
- >Thanks ahead of time...
- >
- >--Richard Petty
- >rwvr90@email.sps.mot.com
- >
- >Motorola
- >Austin, Texas
-
- Some suggestions:
-
- You could add a name property to the application script, make that the same
- name as the script name.
-
- Or add a handler, say MyName, which gets the path to me and returns the
- last chunk of the path
-
- Or both run the MyName() in the run handler and set your name property to
- the result.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 14 Nov 1994 10:46:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Frontier Address Self-ident
-
- My mind is going -- I see anything beginning with an "F" I think it means
- FaceSpan/Frontmost.
-
- Its as bad as John Baxter and the Scriptable Finder (the other F word!) :-)
-
- Apologies (but it was a good tip!).
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 14 Nov 1994 10:40:16 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE-Creating a new record wi
-
- Subject: Time:9:46
- OFFICE MEMO RE:Creating a new record with data in Date:11/14/94
- If you want to fill out all the fields in thernew record then you can set the
- data to layout 0 (layout 0 is a conceptual layout consisting of all the
- fields defined in the database, the fields are ordered according to their
- creation order). On layouts other than layout 0 the data will also be set to
- the fields according to their creation order however data will only be set
- into the fields that actually exist on that layout.
-
- Layout 0 has all fields in creation order.
- Layout nth Layout has the fields that exist on that layout in creation order.
-
- Stephen
- =========================================================================
- Date: Tue, 15 Nov 1994 08:47:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: "Get Terminology" event question
-
- WalrathW <walrathw@RFERL.ORG> asks:
-
- >While on the subject, I noticed something I thought was kind of odd over the
- >weekend. I have a background only scriptable app. I was sending it some
- >events from a script running on another machine across the network, and at
- >the same time snooping through the app's memory with Zone Ranger. All of a
- >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
- >don't support the get terminology event though. Is it possible that the
- >System, or the AppleEvent manager loaded this thing into MY heap?
-
- You only need to supply an explicit handler for the get-terminology event
- if you have dynamic terminology (for example, loaded from extensions).
- AppleScript supplies a default systemwide handler for this event, that loads
- your aete and passes a copy of it back to the requestor. This would be what
- you're seeing happening.
-
- > After that
- >I went and marked the thing purgeable since if it was going to be happening
- >on a regular basis, without me knowing, I didn't want it hanging around when
- >I needed the memory for something else. But Jon is saying I shouldn't mark it
- >purgeable.
-
- Jon also made it clear that the purgeability problem is a bug in AppleScript.
-
- Clearly, for now, you should not make your aete purgeable. If you're worried
- about the space it's taking up (and I doubt it's very big), you could always
- define your own get-terminology handler, which will return a copy of your
- aete and then make it purgeable or call ReleaseResource on it, to free up the
- memory.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 15 Nov 1994 08:52:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Accessing the OSA from C
-
- Deirdre Saoirse-Savino <Deeny3@AOL.COM> asks:
-
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- Those are all Component Manager calls. First you check if the Component Manager
- is present, and if that is true then you do an OpenDefaultComponent on the
- scripting component type of your choice, and if that succeeds you can do
- all the appropriate OSA calls with that component instance.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 14 Nov 1994 16:37:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stonewall Ballard <stoney@CAMBRIDGE.APPLE.COM>
- Subject: Need item bounds including name
-
- I'm trying to get the bounding box of a desktop item. I can ask the
- scriptable Finder:
-
- tell application "Finder" to get bounds of item "SomeItemName"
-
- Unfortunately, the rectangle returned doesn't include the item's name. Is
- there any way to get the bounds of an item's name? Is there an addition
- lying around that will return this?
-
- In case I'm on the wrong track, I'm writing a script that neatens up my
- desktop icons when I switch screen sizes. I normally keep a bunch of
- aliases on the bottom of my screen, and want to put them in nice orderly
- rows, preferably with the names abutting. The script I have so far will
- neaten them up only vertically. It also saves their old positions for a
- particular desktop size, and restores them on demand.
-
- Thanks for any help.
-
-
- ______________________________________________________________________________
- Stonewall Ballard Cambridge Engineering
- stoney@cambridge.apple.com Apple Computer, Inc.
- =========================================================================
- Date: Mon, 14 Nov 1994 13:45:22 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Re: Gaea down?
-
- >I can't seem to be able to get into gaea since yesterday morning. The
- >error I get is: "452 Can't create data socket (129.237.140.40,20):
- >Interrupted system call."
-
- I have had the same problem about creating data sockets as well....It might
- just be that it has to many connections at he time.
-
-
- -Mike Lennon
- =========================================================================
- Date: Mon, 14 Nov 1994 16:50:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Eric Bickford <EricBB@AOL.COM>
- Subject: Re: FMP and MacHTTPD
-
- >>Has anybody written a hamster to connect MacHTTPD to >>FileMaker Pro for
- doing something simple like returning >>records with a field that contains
- and entry
- >>in a HTML form?
-
- I don't know if this is what you're after, but it still might be useful.
-
- I use FMPro calculation fields to generate HTML with ancors. In this way I
- don't have to wait for AppleScript to create the HTML. A key point, though,
- is to create a field called Double Quotes that you insert in the calculation
- field to get HTML that contains double quotes.
-
- Eric Bickford
- ebickfor@rd.raychem.com
- =========================================================================
- Date: Mon, 14 Nov 1994 17:27:22 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lloyd <100046.3512@COMPUSERVE.COM>
- Subject: Move to Trash
-
- This, the simplest of scripts, moves files to the trash:
-
-
- tell application "Finder" to move selection to trash
-
-
- But by using Keyquencer to run the script via a key command,
- it moves a selected file to the trash *and* also deletes the file from the
- trash.
- (Any other files in the trash remain there.)
- Does anyone know why this is ?
-
- Dave L.
- =========================================================================
- Date: Mon, 14 Nov 1994 14:59:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Accessing the OSA from C
-
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- I provided a completely bogus answer a few minutes ago. Ignore it, and go
- with Mike Cohen's correct answer. [There really is a difference between
- "OSA" and "OSL".]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 14 Nov 1994 16:10:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Frontier Address Self-ident
-
- > Reply to: Frontier Address Self-identity
- > Does anyone know a way of having a Frontier script ask what it's own name
- >is?
- > For example, if a script located at root.scratchpad.testscript is running,
- >how can I get it to return "testscript"
- > I want to achieve this so that I can write a generic script that will act
- >on a file whose name matches the script name. A date flag also would match
- >the file name.
- >
- >Thanks ahead of time...
- >
- >--Richard Petty
- >rwvr90@email.sps.mot.com
- >
- >Motorola
- >Austin, Texas
-
- Richard,
-
- A UserTalk script can't get its name like that. But a normal desktop script
- can get the full path to itself by accepting the value as a paramter:
-
- on myScript (path)
- <do stuff>
-
- or by examining the value system.deskscripts.path. IOW, a desktop script
- can be generic, and operate based on its file name. But for a script that
- lives in the database to be generic, it must take a parameter of some sort.
-
- Doug
- =========================================================================
- Date: Tue, 15 Nov 1994 13:18:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Accessing the OSA from C
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >The Gestalt selector is gestaltAppleEventsAttr ('evnt')
- >
- >If bit number 2 (1 << gestaltOSLInSystem) is set, the OSA trap is
- >available (or the right shared library is in place on a Power Mac).
-
- There is no OSA trap. And apart from both being built on top of AppleEvents,
- the OSL and OSA have relatively little to do with each other. The OSL is the
- Object Support Library, which is a bunch of code that applications can use
- to support the AppleEvent Object Model, which makes them nice to work with from
- AppleScript. OSA is the Open Scripting Architecture, which allows plug-in
- scripting languages, one of which happens to be AppleScript.
-
- Clear as mud...?
- =========================================================================
- Date: Mon, 14 Nov 1994 18:43:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier Address Self-ident
-
- > Reply to: Frontier Address Self-identity
- > Does anyone know a way of having a Frontier script ask what it's own name
- >is?
- > For example, if a script located at root.scratchpad.testscript is running,
- >how can I get it to return "testscript"
- > I want to achieve this so that I can write a generic script that will act
- >on a file whose name matches the script name. A date flag also would match
- >the file name.
- >
-
- It's not possible....it is already on the wish list, however. For the
- moment, you would simply have to hard code a string (or database
- address...essentially the same thing) and return that, remembering to
- change it when you move things around.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Mon, 14 Nov 1994 22:05:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: William Moss <gt0831c@PRISM.GATECH.EDU>
- Subject: Various Questions
-
- Is it possible to open a "stationery pad" from the scriptable finder in the
- manner which creates a duplicate of the document and keeps the original
- intact? Every time I attempt to "open" a filename it displays the notice
- that the user is editing the original item and not a duplicate. In other
- words it's giving me the Standard File Open behaviour when I want the
- double click in the finder behaviour. Any ideas to force this second open
- method?
-
-
- _____ William Moss _____
- _____ 24899 Georgia Tech Station _____
- _____ Atlanta, GA 30332 _____
- _____ gt0831c@prism.gatech.edu _____
- =========================================================================
- Date: Mon, 14 Nov 1994 19:25:58 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: Literal AppleEvents
-
- FYI, I have seen some discussion about how to do literal AppleEvents in
- AppleScript. Just thought I'd pass it along, from the AppleScript Language
- Guide (pp 83-84; if you forget where to find it, look in the index under
- "<< >>")
-
- The form is:
- <<event aevtodoc>>
- Where the << >> are single characters formed by using opt-\ and shift-opt-\
- (I didn't use the single chars here since I didn't think it would make it
- through the mailer). The "event" word is literal, then you have eight
- characters, the first four of which are the suite and the second four are
- the event code. Don't know about doing parameters, tho. BTW, if you do type
- in the above in the script editor, it will change the string from the above
- into "open".
-
- Alex L. Bangs
- bangs@netcom.com/work (415) 854-9000/home (415) 966-8377
- =========================================================================
- Date: Mon, 14 Nov 1994 21:23:40 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Gaea down?
-
- >I have had the same problem about creating data sockets as well....It might
- >just be that it has to many connections at he time.
- >
- >
- >-Mike Lennon
-
- I can get in fine now. Must have been some wierd thing.
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Mon, 14 Nov 1994 21:29:02 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: FMP and MacHTTP (was Re: FMP and MacHTTPD)
-
- This has nothing to do witht this particular discussion, but has bothered
- me since this thread was posted. The application is MacHTTP, not MacHTTPD.
- Sorry, but as I am slowly but surely becoming a computer myself, exactness
- is key ;=AC)
-
- Just my late night $53,000.02
-
- (P.S. this is not meant as a flame or anything of the sort. Just pointing
- it out!:=AC))
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999
- =========================================================================
- Date: Mon, 14 Nov 1994 22:02:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: "Stationery Pad"
-
- >Is it possible to open a "stationery pad" from the scriptable finder in the
- >manner which creates a duplicate of the document and keeps the original
- >intact? Every time I attempt to "open" a filename it displays the notice
- >that the user is editing the original item and not a duplicate. In other
- >words it's giving me the Standard File Open behaviour when I want the
- >double click in the finder behaviour. Any ideas to force this second open
- >method?
-
- Most apps do not have the "stationary aware" bit set. ie, they actually
- don't know anything about pads - the finder just makes it look that way.
- When you send an event right to the app, you bypass that clever part of the
- finder.
-
- To simulate this, you might sending an "open selection" event to the finder
- rather than an "open document" event to the application.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Mon, 14 Nov 1994 22:02:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- >While on the subject, I noticed something I thought was kind of odd over the
- >weekend. I have a background only scriptable app. I was sending it some
- >events from a script running on another machine across the network, and at
- >the same time snooping through the app's memory with Zone Ranger. All of a
- >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
- >don't support the get terminology event though. Is it possible that the
- >System, or the AppleEvent manager loaded this thing into MY heap? After that
- >I went and marked the thing purgeable since if it was going to be happening
- >on a regular basis, without me knowing, I didn't want it hanging around when
- >I needed the memory for something else. But Jon is saying I shouldn't mark it
- >purgeable.
-
- Don't. It will really confuse Script Editor.
-
- It used to be that an app had to support the "Get Terminology" event if
- people were to be able to write:
- tell application "foo" of machine "bar"
- whatever
- end tell
-
- So that SE could syntax check.
-
- I dont' know of any apps that *so* support this event, so as a scripter you
- had some unsavory ways to work around this problem.
-
- System 7.5 to the rescue:
- It seems that the version of AppleScript that ships with 7.5 must install a
- system wide handler for this event, so even if the target app *does not*
- support the GT event, the extension will suck the resource out the app and
- pass it back for you. This is mostly a good thing. The only apps that
- should mind are those that have dynamic 'aete' - and are there any yet?
-
- A side effect of this may be that if the app *is running* on that remote
- machine, perhaps it would load the resource in that heap? (A guess)
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Tue, 15 Nov 1994 03:14:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
- Subject: MountVolume documentation?
-
- I need to mount a disk in a script. I've seen the MountVolume command in
- some scripts posted here, but I can't find any information on it in the
- documentation I have (Language Guide, Tao of AS). I've got the Scriptable
- Finder, but the command doesn't seem to be in its dictionary. What
- scripting addition do I need to use MountVolume?
-
- On a related note, is there any way to determine which dictionary a
- particular command is in when it's entered into the Script Editor?
-
- Thanks,
-
-
- John
-
- ______________________________________________________________________________
- John Dunning jdunning@phoenix.princeton.edu
- =========================================================================
- Date: Tue, 15 Nov 1994 00:15:58 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Get a life, Jon.
-
- WalrathW <walrathw@RFERL.ORG> wrote:
- >
- >> >Yeah, Jon, Get a life! .... ;-)
- >>
- >> I've got one. I just spent opening day at Squaw Valley amidst a very nice
- >> snowstorm and plenty of powder. It's about the only pasttime better than
- >> hacking. ;)
- >
- >But you undoubtedly took your PB with you, didn't you, just in case you
- >couldn't find any action in the bars! ;-) I remember an old message you
- >sent where you were sitting in a bar watching the SuperBowl and working on
- >your popup menu XCMD.... I've hacked on planes, in parks, and moving
- >vehicles (when someone else was driving), but not yet in a bar. That would
- >surely blow my cover! :)
-
- My cover was blown years ago. The real warning sign is that you remember
- that incident though. I'd banged my knee on a late afternoon mogul the day
- before at Mount Rose, so I was hanging out in the bar at Alpine Meadows
- (right next to Squaw) while my friends skied. I thought the weirdest part
- was how normal it all was. No one even blinked. The young lady sitting
- next to me even remarked that my PowerBook 140 was "fresh". Not these
- days. :( I wonder what she'd think of my clear cased Newton.
-
- For the record though, I had no computer with me this time. ;)
-
- Jon
-
- PS
-
- Just so that this meets the charter, I'm now working out how to run
- AppleScripts from my Newton. The real trick will be to get a beaming
- station for my Mac.
- =========================================================================
- Date: Tue, 15 Nov 1994 00:16:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- >What's the story here?
-
- Both Lawrence and John mentioned most of these points, but I wrote this up
- before I read their replies and I have a couple of little things to add.
- Besides, repetition improves comprehension. ;)
-
- Here's the story. AppleScript wants your aete so that it can compile your
- AppleScripts. It calls OSAGetAppTerminology which returns a copy of your
- aete resource. How does it get this?
-
- If you aren't running and are on the same machine, AppleScript opens your
- app up and simply snags the appropriate aete resource and returns that.
- The real trick comes if you are running or if you are on another machine.
- Then it sends a GetTerminology event to your app. Since you have never
- heard of this event, your app returns errAEEventNotHandled, and the system
- handler that AppleScript installed gets called. Since it is running in
- your app, it simply calls GetResource and it has your aete. It returns the
- aete and goes back to wherever uncalled handlers hang out.
-
- So, yes, your aete can be loaded into memory at any time. Yes, you should
- make it purgeable to minimize this potential memory problem. BUT, there is
- a bug in the Script Editor where you get a blank dictionary window
- sometimes when viewing a purgeable aete. This leads me to recommend not
- making your aete purgeable until there is a fix for this. Some might
- consider that fix to be a different script editor, and that's one of my
- choices, but apps for distribution probably should expect to have their
- aete resources loaded.
-
- As I noted though, there are a number of apps which have purgeable aete
- resources, including Apple's Hypercard and PhotoFlash, so you'd be in good
- company. The point of my note which started this was to remind any
- developers reading that they should be able to deal with a purgeable handle
- there. I think it's a better solution that marking all aete resources as
- unpurgeable.
-
- The real problem with this system handler technique is that it's a great
- way for a virus to infect a program since most virus checkers won't spot
- this "legal" resource call which an app appears to be making on itself. It
- would still have to get loaded and run first though.
-
- Jon
- =========================================================================
- Date: Tue, 15 Nov 1994 08:39:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: MountVolume documentation?
- In-Reply-To: Your message of "Tue, 15 Nov 94 03:14:41 EST"
-
- John,
-
- >I need to mount a disk in a script. I've seen the MountVolume command in
- >some scripts posted here, but I can't find any information on it in the
- >documentation I have (Language Guide, Tao of AS). I've got the Scriptable
- >Finder, but the command doesn't seem to be in its dictionary. What
- >scripting addition do I need to use MountVolume?
-
- You'll find MountVol on gaea.kgs.ukans.edu in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/MountVolosax.hqx
-
- >On a related note, is there any way to determine which dictionary a
- >particular command is in when it's entered into the Script Editor?
-
- You can search through all of your osaxen individual or use the EightyLister
- osaxen to build an inventory of your osaxen. You'll also find a database of
- commands which might contain it. It's in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/OSAXenDB.sit.hqx
-
- The database requires FileMaker Pro.
-
- Cheers.
-
- pf
- =========================================================================
- Date: Tue, 15 Nov 1994 15:57:21 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Martin Jean <jeanm@TEMPETE.WUL.QC.DOE.CA>
- Subject: Unable to open dictionnary
-
- I am new to AppleScript and I have a problem. When I choose the "Open
- Dictionnary ..." in the File menu of Script Editor, I get an error message
- that said "Could not read the dictionnary of the application of extension
- because the required resources were not found."
-
- What do I need to be able to open dictionnaries.
-
- BTW, I got AppleScript 1.0 from Goodman's book, and I found a copy of
- version 1.1. What are the differences? Could it explain my problem (I think
- it workd well with version 1.0)?
-
- Thank you
-
- ----------------------------------------------------------
- Martin Jean ------------
- Centre Saint-Laurent | ---------- |
- Environnement Canada || ||
- 105, rue McGill, 4e etage || ||
- Montreal (Quebec) || ||
- H2Y 2E7 || ||
- Tel.: (514) 496-2661 | ---------- |
- Fax.: (514) 283-9451 | --- |
- Internet : jeanm@tempete.wul.qc.doe.ca | |
- ------------
- ----------------------------------------------------------
- =========================================================================
- Date: Tue, 15 Nov 1994 09:03:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: Get a life, Jon.
-
- At 12:15 AM 11/15/94, Jon Pugh wrote:
- >
- >My cover was blown years ago. The real warning sign is that you remember
- >that incident though. I'd banged my knee on a late afternoon mogul the day
- >before at Mount Rose, so I was hanging out in the bar at Alpine Meadows
- >(right next to Squaw) while my friends skied. I thought the weirdest part
- >was how normal it all was. No one even blinked. The young lady sitting
- >next to me even remarked that my PowerBook 140 was "fresh". Not these
- >days. :( I wonder what she'd think of my clear cased Newton.
- >
- I don't ski, but I've heard that the area we're moving to in Wyoming has
- great skiing.
-
- >For the record though, I had no computer with me this time. ;)
- >
- >Jon
- >
- >PS
- >
- >Just so that this meets the charter, I'm now working out how to run
- >AppleScripts from my Newton. The real trick will be to get a beaming
- >station for my Mac.
-
- There's a product (I forget the name offhand, but there was an article
- about it in the last issue of PIE Developer) that lets you imbed
- AppleScripts in a newton app and run it through a server running on a mac.
- You can also use my company's Flash-Data to trigger an AppleScript in
- Flash-Link.
-
- _______________________________________________________________
- Mike Cohen | ISIS International
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- Home Page: ftp://ftp.netcom.com/pub/isis/home.html
- =========================================================================
- Date: Tue, 15 Nov 1994 12:24:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Sending raw events to FaceSpan
-
- Excuse the repeat of this question but I have still not been able to find
- an answer and wanted to take a shot at asking again:
-
- Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- the kind sent from Filemaker ie. an event class and an event id)?
-
- I can send event from Filemaker to an applet created with the script editor
- but not to an applet created with FaceSpan.
-
- Any help our suggestions would be most appreciated.
- Thanks in advance.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Tue, 15 Nov 1994 09:26:26 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: "Get Terminology" event question
-
- At 22:02 11/14/94, Brian Hall wrote:
- >It seems that the version of AppleScript that ships with 7.5 must install a
- >system wide handler for this event, so even if the target app *does not*
- >support the GT event, the extension will suck the resource out the app and
- >pass it back for you. This is mostly a good thing. The only apps that
- >should mind are those that have dynamic 'aete' - and are there any yet?
-
- It's a standard system handler, which only gets called if the application
- says it didn't handle the getAETE event (errAEEventNotHandled). So it
- doesn't get in the way of applications which do handle the event.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 15 Nov 1994 12:50:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Sending raw events to FaceSpan
-
- >Excuse the repeat of this question but I have still not been able to find
- >an answer and wanted to take a shot at asking again:
- >
- >Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >the kind sent from Filemaker ie. an event class and an event id)?
- >
- >I can send event from Filemaker to an applet created with the script editor
- >but not to an applet created with FaceSpan.
- >
- >Any help our suggestions would be most appreciated.
- >Thanks in advance.
-
- well, you have the seeds to a work-around!
-
- Just make an applet in AppleScript to receive these events, and then send
- them to the FaceSpan app via "tell" statements... that should work.
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 15 Nov 1994 10:03:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Frontier: dialog.runModeless question
-
- Hi,
-
- So I wanted my Frontier customStartup script, which usually asks if I want
- Eudora started, to automatically answer in the affirmative if I haven't
- responded in thirty seconds. No problem, eh? Just take the code used in
- dialog.twoWay and duplicate it using dialog.runModeless instead of
- dialog.run. The problem is that dialog.run is kind enough to center the
- dialog in the screen when it draws it, but dialog.runModeless puts it up at
- 0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
- depending on whether it's docked or undocked. Thanks.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Tue, 15 Nov 1994 13:52:14 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: flip <flip@BOGIE2.BIO.PURDUE.EDU>
- Subject: FMP & Picture Fields
-
- >Date: Sat, 12 Nov 1994 09:41:31 -0500
- >From: Charles Bruce Pelto <CPelto@AOL.COM>
- >Subject: FMP & Picture Fields
- >
- >How does one get a picture field out of FMP in an applescript?
- >
- >I've tried this with...
- >
- >tell application "FileMaker Pro"
- > copy cellValue of cell "Picture" to thePicture
- >end tell
- >
- >...which doesn't work.
-
- You need to write a script within FileMaker that will copy the
- pict file to the clipboard.
-
- >From AppleScript write:
- tell application "FileMaker Pro"
- activate
- Do Script FileMaker Script "Copy Picture"
- end tell
- __@ Phillip 'Flip' Russell | Purdue University __@
- _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN _ -\<,_
- (_)-----/-(_) The important things... (_)-/-(_)
- My bikes and my Macintosh
- Biology Web Server: http://www.bio.purdue.edu
- =========================================================================
- Date: Tue, 15 Nov 1994 12:00:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tim Neese <neese@SPOT.COLORADO.EDU>
- Subject: Listserv scripts on the Mac
-
- Hello,
-
- Someone recently asked on the info-mac list about being able to provide
- listserv email list management and processing on the Mac. While I haven't
- seen anything to do this (at least in shareware), it occurred to me that
- with the latest 1.0b8 version of MailShare, a freeware POP email server for
- the mac, that this might be possible through some scripting, so I thought I
- would run this by you and see if anyone has worked on this.
-
- MailShare 1.0b8 has added an option to be able to save messages coming into
- an address as files, which in combination with Folder Watcher (watches a
- folder and runs an Applescript when it changes), AppleScript, System 7.5
- (for the scriptable Finder, otherwise pre-7.5 Finder osaxen like Finder
- Liaison with Sys 7.1), and Eudora (or TCP/IP Applescript kit to send
- messages and files out), should make it possible to provide automated list
- serving and processing on the Mac.
-
- I would envision this working so that you had an account like 'listserv'
- and mail sent to it would be automatically dumped into a folder. Whenever
- mail came into that folder, Folder Watcher would then run a listserv
- Applescript that read in the file and either added a person to a list,
- deleted them from a list, or mailed back the info file for a particular
- list. You could even create an Applescript to create email digests for
- lists by concatenating email messages sent to a list (by having an address
- on the MailShare server subscribed to the list and saving the messages to
- files) into a file and then mailing that file out to the digest list at the
- end of each day. Adding names to a list file wouldn't seem to be that hard
- since you're just concatenating them onto an existing file. Deleting them
- would be trickier because you need to be able to delete them from in the
- middle of the file, but I think there would be ways to do this reasonably
- efficiently.
-
- Although it wouldn't be trivial to create these scripts, once created, they
- shouldn't be too hard to setup. In the long run, though, it would be
- better to see this as part of MailShare itself (which the author has talked
- about doing), so there wouldn't be so much dependence on external
- applications and scripts, which are bound to jam up on occasion. When it's
- all said and done, however, the question of performance will still remain.
- My intuitive sense is that it would be adequate for lists in the less than
- 200 subscriber range but would bog down beyond that, but this is just pure
- speculation on my part.
-
- I would like to play around with this but am pretty new to Applescript and
- don't have much time to devote to it, so if any Applescript wizards would
- happen to want to sharpen their skills on this, I'm sure there would be
- many grateful folks on the net who would greatly appreciate the convenience
- of automated listserv managed lists for small groups with the Macintosh
- ease of setup and maintenance.
-
- Does anyone have any feedback or suggestions on how this could be done
- better on a Mac or things that I've overlooked that I should consider
- before spending time on playing around with scripts to do this?
-
- Thanks.
- Tim
- =========================================================================
- Date: Tue, 15 Nov 1994 15:19:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): Get a life, Jon.
-
- Jon wrote:
- >Just so that this meets the charter, I'm now working out how to run
- >AppleScripts from my Newton. The real trick will be to get a beaming
- >station for my Mac.
-
- For an encore, I'd like to see you run NewtonScripts from your Mac. Kind of
- like picking up your VCR and using the corner of it to press buttons on your
- TV remote. :)
-
- David Jokinen
- Ground Zero Software
- =========================================================================
- Date: Tue, 15 Nov 1994 16:05:49 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jonathan Donald <jeddak@PANIX.COM>
- Subject: FMP TImeout Problem!
-
- IUm working on a fairly large & involved AppleScript that manipulates
- data in several FileMaker Pro files. It all seems to work really well, except
- for one niggling--and highly frustrating--problem:
-
- When I try to obtain the number of records in the current found set,
- the event never resolves; instead, after a minute or so, I get an RAppleEvent
- timed outS dialog box.
-
- The problem line is:
-
- set rCount to (Count of Layout 1 of Window 1 Class Record)--times
- out
-
- IUve tried it with long time outs and it just doesnUt do any good.
-
- My environment:
- Quadra 700, System 7.1.1
- Script Editor 1.1
- FileMaker Pro 2.1v3
- AppleScript 1.1
- Inline Filter 1.1
-
-
- Please help!!!
-
-
- FYI: I had the same problem when I ran a FileMaker Script from my
- AppleScript that did a Find All. When I replaced that call with a simple
- AppleScript Tshow every record,U it no longer timed out.
- =========================================================================
- Date: Wed, 16 Nov 1994 10:29:43 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chris Latta <CHRIS@TEKOTAGO.AC.NZ>
- Subject: wp 3.x exporting
-
- Has any one scripted wordperfect 3.0 or 3.1 to save a file as rtf or wp5.1
- export. I can do it by telling wordperfect to run a macro that I have created
- but It would be great to do it all by applescript.
-
- Thanks in advance
-
- Chris Latta
- Ed Tech Unit
- Otago Polytechnic
- New Zealand
- "The only stupid questions are the ones I ask!"
- =========================================================================
- Date: Tue, 15 Nov 1994 17:12:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM>
- Subject: Re: Sending raw events to Fa
-
- Reply to: RE>Sending raw events to FaceSpan
-
- Hi,
-
- Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
- > Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- > the kind sent from Filemaker ie. an event class and an event id)?
-
- > I can send event from Filemaker to an applet created with the script editor
- > but not to an applet created with FaceSpan.
-
- I tried this out, and ran into the same difficulty you had. Events that I
- composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- them on to the script component to let it try to handle them.
-
- This struck me as odd, because other events (calls to osaxen and other
- system-
- handled events) had to make it. So I tried a 'custom' event with an event
- class of 'aevt'. Ta da! It worked.
-
- That's the secret: use an event class of 'aevt'. You could also try class
- 'syso', but I noticed some wierd behaviour when I tried this out, so I would
- not advise it.
-
- Hope that helps (and thanks for asking cool questions),
- Andrew
- ----------------------------------------------------------------------
- Andrew T. Johnston |
- Apple Canada, Inc. | Who else would claim these opinions as his own?
- atjohnst@apple.com |
- =========================================================================
- Date: Tue, 15 Nov 1994 17:19:08 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Unable to open dictionnary
-
- >I am new to AppleScript and I have a problem. When I choose the "Open
- >Dictionnary ..." in the File menu of Script Editor, I get an error message
- >that said "Could not read the dictionnary of the application of extension
- >because the required resources were not found."
- >
- >What do I need to be able to open dictionnaries.
- >
- >BTW, I got AppleScript 1.0 from Goodman's book, and I found a copy of
- >version 1.1. What are the differences? Could it explain my problem (I think
- >it workd well with version 1.0)?
- >
- >Thank you
- >
- >----------------------------------------------------------
- >Martin Jean ------------
- You need v1.1 of the Script Editor *and* AppleScript.
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999 )
- =========================================================================
- Date: Tue, 15 Nov 1994 15:55:28 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Lawrence Wood <lawrencw@MICROSOFT.COM>
- Subject: Re: FMP Repeating Fields and Excel WorkSheets
-
- Hi,
- Try the following (a quote from MS tech support that I have
- twiddled with a bit)
- BEGIN twiddled QUOTE
- I begin with Excel 4.0, which does not support moving the contents of
- the list with one statement, unlike Excel 5.0.
-
- tell application "Microsoft Excel"
- activate
-
- set talley to {5, 6, 7, 8}
- set myrow to 2
-
- set selection to Cell 1 of Row myrow
-
- make new Row -- activecell at this point is first column of new row
-
- repeat with i in talley
- set value of Cell "rc" to i
- set selection to Cell "rc[1]"
- end repeat
-
- end tell
-
- And here is the Excel 5.0 version, which allows you to move the whole
- list in one statement. Pay attention to the trick at the bottom that
- transposes a vertical array into a horizontal one.
-
- tell application "Microsoft Excel"
-
- set talley to {5, 6, 7, 8}
- set myrow to 2
-
- Insert Row myrow -- Excel 5.0 syntax to insert a row at row 2
- set numCols to count of talley
- set Value of Cell ("r" & myrow & "c1:r" & myrow & "c" & numCols) to
- {talley} -- won't work in 4.0
- (*
- note: {talley} is a trick to take the list talley, which would enter exc
- el
- as a vertical array, and place it within a list, the eff
- ect of which
- is to flip it into a horizontal array
- *)
- end tell
-
-
- Hope this helps,
- END QUOTE
- lw
- ----------
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Subject: FMP Repeating Fields and Excel WorkSheets
- Date: Nov 12, 94 9:41AM
-
- Speaking of repeating fields...
-
- ....I'm trying to figure out how to take the data from a repeating field and
- stuff it into an Excel worksheet as a row.
-
- I am using
-
- tell application "FileMaker Pro"
- copy cellValue of cell "Repeating Field" to theRepeatingField
- end tell
-
- -- this gets the information from the repeating field as a list
-
-
- tell application "Microsoft Excel"
- make new row at row r with data theRepeatingField
- end tell
-
- -- this gets me an error that reads Excel cannot continue -10000
-
- I've called MS tech support and they've not been able to tell me what I
- should be doing.
- =========================================================================
- Date: Tue, 15 Nov 1994 16:52:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Listserv scripts on the Mac
-
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
- >
- > .....
- >
- >Does anyone have any feedback or suggestions on how this could be done
- >better on a Mac or things that I've overlooked that I should consider
- >before spending time on playing around with scripts to do this?
- >
-
- My only suggestion would be that you might use Frontier. I know that Dave
- Winer has implemented pretty much what you descibe with just Frontier and
- Eudara alone. No need for the scriptable finder, osax, or anything else to
- get the job done.
-
- Doug
- =========================================================================
- Date: Wed, 16 Nov 1994 12:35:55 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: My first question...
- In-Reply-To: <199411130619.RAA07865@ariel.ucs.unimelb.EDU.AU> from "rD>" at
- Nov 13, 94 01:19:04 am
-
- > The global and the _on idle_ commands I got from someone's advice.
- > I have the TAO... and it does not cover these functions, yet in a FAQ I
- > read that this book includes the full language. Apparently not.
- > I also read that AS has some stuff that is hard to find out about!
- >
- > This script works, but I don't know where to make the repeat loop.
- > I have a feeling that the whole thing could be rewritten and made better,
- > but this is my first (ambitious) script.
-
- It would take a fair while to explain how all this works. It would be
- better if you got hold of the "AppleScript Language Reference" (Addison
- Wesley) and read about the idle handler there.
-
- If you're serious about AppleScripting, you need this book. It also comes
- with the AppleScript CD (along with FaceSpan, distribution license, and
- other stuff...)
-
- You don't need a repeat loop--a stay-open script will run an idle handler
- every period returned by its 'Return' parameter.
-
- You don't need a run handler. Commands outside a handler are assumed to be
- for the run event.
-
- Hope this helps,
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Tue, 15 Nov 1994 20:43:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jay Thomas <jthomas@PLUTO.NJCC.COM>
- Subject: Re: Listserv scripts on the Mac
-
- >>Someone recently asked on the info-mac list about being able to provide
- >>listserv email list management and processing on the Mac. While I haven't
- >>seen anything to do this (at least in shareware), it occurred to me that
- >>with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >>the mac, that this might be possible through some scripting, so I thought I
- >>would run this by you and see if anyone has worked on this.
- >>
- >> .....
- >>
- >>Does anyone have any feedback or suggestions on how this could be done
- >>better on a Mac or things that I've overlooked that I should consider
- >>before spending time on playing around with scripts to do this?
- >>
- >
- >My only suggestion would be that you might use Frontier. I know that Dave
- >Winer has implemented pretty much what you descibe with just Frontier and
- >Eudara alone. No need for the scriptable finder, osax, or anything else to
- >get the job done.
- >
- >Doug
-
- where can i get this? does it work with the frontier runtime.
- =========================================================================
- Date: Tue, 15 Nov 1994 17:41:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier: dialog.runModeless question
-
- >Hi,
- >
- >So I wanted my Frontier customStartup script, which usually asks if I want
- >Eudora started, to automatically answer in the affirmative if I haven't
- >responded in thirty seconds. No problem, eh? Just take the code used in
- >dialog.twoWay and duplicate it using dialog.runModeless instead of
- >dialog.run. The problem is that dialog.run is kind enough to center the
- >dialog in the screen when it draws it, but dialog.runModeless puts it up at
- >0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
- >depending on whether it's docked or undocked. Thanks.
-
- Hi, David...
- In probing here, it appears that you can adjust the rectangle in the
- DLOG resource, and have an effect on where the dialog will be displayed.
- If I put the dialog "fairly far to the right and down", dialog.runModeless
- places it a little up and left from where dialog.run does. If I build the
- DLOG resource so that its top left is 0,0, that's where dialog.runModeless
- places it.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 16 Nov 1994 00:11:22 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- Brian Hall <mspace@NETCOM.COM> wrote:
- >
- >It used to be that an app had to support the "Get Terminology" event if
- >people were to be able to write:
- >tell application "foo" of machine "bar"
- > whatever
- >end tell
- >
- >So that SE could syntax check.
-
- I don't recall this ever being the case. Most likely you didn't have
- AppleScript installed on the remote machine. I'm pretty sure that you need
- to have AppleScript there so that it has the system GetTerminology handler
- installed. I suppose implementing one would work, but it's not the
- simplest solution. ;)
-
- >System 7.5 to the rescue:
- >It seems that the version of AppleScript that ships with 7.5 must install a
- >system wide handler for this event, so even if the target app *does not*
- >support the GT event, the extension will suck the resource out the app and
- >pass it back for you. This is mostly a good thing. The only apps that
- >should mind are those that have dynamic 'aete' - and are there any yet?
-
- AppleScript has always implemented this scheme. System 7.5 had no changes
- to AppleScript (well, OK, they recompiled it with a VERY minor Script
- Editor WorldScript bug fix).
-
- Also, as we were discussing a few days ago, Quark is the only app I know
- which supports dynamic terminologies, but I have yet to see an extension
- which has a dictionary.
-
- >A side effect of this may be that if the app *is running* on that remote
- >machine, perhaps it would load the resource in that heap? (A guess)
-
- I believe that you MUST have the remote app running in order to script it.
- Someone needs to be the target of the GetTerminology event. As I stated
- before, the resource gets loaded, detatched and returned (copied) in the
- GetTerminology reply. The original should be purgeable, but I don't think
- it gets marked so by AppleScript (this is a good thing for the
- investigative among you to check).
-
- Jon
- =========================================================================
- Date: Wed, 16 Nov 1994 00:11:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Sending raw events to FaceSpan
-
- Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
- >
- >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
-
- I can explain all of this. FaceSpan registers its events in suites. So,
- it registers handlers for 'aevt****', 'core****' and 'misc****', among
- others. Thus, the custom event you were trying to accept wouldn't have a
- handler installed for it. If you made it fall into one of these suites, it
- would have a handler installed, although there's no guarentee that an app
- will do anything sensible with the event once the handler got it.
-
- I would have expected that applets would do the same thing that Hypercard
- does, which is to install a '********' handler and just deal with whatever
- comes in. They don't though. They register a quit event and install a
- phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
- equals 'phac' and is not named after Phac Le Tuan). This phac handler gets
- every event BEFORE it gets sent to its proper handler. I don't know why
- its done this way, but I'll see if I can find out. It's probably just a
- dispatch optimization.
-
- As a final note, the reason why 'syso' events go weird is that the "choose
- folder" osax registers as the 'syso****' handler. This means that any
- events with class 'syso' and are not handled by an explicit handler, get
- sent there and you get the Choose Folder dialog. I think this might
- qualify as a bug. Someone should try finding the "choose folder" event in
- the aete and change the osax name to match that and see if it still works.
- I wonder if there are any other 'syso' events that it handles. Time to
- snoop the code, I guess. ;)
-
- Jon
- =========================================================================
- Date: Wed, 16 Nov 1994 00:15:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Listserv scripts on the Mac
-
- >Hello,
- >
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- This is the sort of largish job I would tend to do with Frontier, rather
- than with AppleScript. [Eudora would be fine as the mailing application.]
- Several of Frontier's capabilities make sense here (your list might be an
- outline in the Frontier database, rather than a separate text file. The
- outline editor in Frontier is nicely scriptable.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 16 Nov 1994 00:37:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >Subject: Accessing the OSA from C
- >
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- I wondered the same when I first tried to do this... when you try to
- open the component, it will return NULL if there is no component. I don't
- know if this works on System 6, but on System 7, it will return NULL if
- AppleScript is not installed. I don't know if there is a Gestalt call
- for the Component Manager...
-
- ex.
- gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
- kAppleScriptSubtype);
-
- To check if AppleScript loaded (later in program) ...
-
- if (gScriptingComponent != NULL)
- {
- ... do OSAExecute, etc.
- }
-
- BTW, a good article/sample to use if you are trying to get started with OSA
- calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
- for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
-
- Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
- that will tell you if AppleEvents are present, but not if AppleScript is...
-
-
- -- Alex
- =========================================================================
- Date: Wed, 16 Nov 1994 04:34:15 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): Listserv scripts on the Mac
-
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- I, too, would like to offer a Macintosh-based list server. In fact, I would
- very much like to get involved in creating it.
-
- I wonder what would happen if we were to try this instead via PowerTalk
- gateways, which will offer the potential for a multi-system listserv
- (probably the world's first!) The concept of messages coming in and going out
- via any combination of carriers is exciting, especially when you consider
- that PowerTalk automatically delivers messages in the best possible format,
- not the least common format.
-
- To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- Internet one, in particular, is a dream. I heartily recommend Mail*Link
- PT/INET from StarNine. Its handling of enclosures is totally transparent,
- plus you get to use all the fancy address catalogs.
-
- So the plan would be: incoming->PowerShare->AOCE
- daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- daemon area, but I know something better is possible. Just look at the sheer
- size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
- =========================================================================
- Date: Wed, 16 Nov 1994 10:44:50 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chris Remie <chris@MEDIAMATIC.NL>
- Subject: Newbie on Timer function
-
- Hi,
- I'm new here so have mercy.
- Is there a way to make a script that performs a task at a certain time every
- day?
- Thanks,
- Chris Remie
-
- Mediamatic Magazine
- Mediamatic Interactive Publishing
-
- postbus 17490
- 1001 JL Amsterdam
- the Netherlands
-
- vox: +31 - 20 626 6262
- fax: +31 - 20 626 3793
- www: http://mmol.mediamatic.nl
- =========================================================================
- Date: Wed, 16 Nov 1994 08:36:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gary Morrison <MORRISG@ORG.BITNET>
- Subject: Re
- In-Reply-To: <199411160814.AA20474@iia.org>
-
- unsubcribe
- =========================================================================
- Date: Wed, 16 Nov 1994 08:43:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Michael D. Doub" <doub@DG-RTP.DG.COM>
- Subject: Changing Folder and File Visibility
-
- Is anyone aware of a osaxen that would allow you to control the visability
- of a folder or a file from AppleScript? A scriptable version of the
- BlindFold application would do the trick too. Does it exist?
-
- Thanks
- Mike
- =========================================================================
- Date: Wed, 16 Nov 1994 14:23:23 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Davies <d.a.davies@BHAM.AC.UK>
- Subject: Key presses and timing query
-
- Sorry to ask such a basic question but can anyone tell me how to get back
- which key a user has pressed from within Applescript?
-
- While I'm at it, does anyone know of a more accurate way of timing an
- operation in Applescript other than using the time to the nearest second?
- Tenths of a second would be good enough.
-
- Thanks,
-
- David Davies
- =========================================================================
- Date: Wed, 16 Nov 1994 08:55:45 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re
- In-Reply-To: Your message of "Wed, 16 Nov 94 08:36:40 EST"
-
- >unsubcribe
-
- Send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
- =========================================================================
- Date: Wed, 16 Nov 1994 12:26:21 AST4ADT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: LEBLANR@UMONCTON.CA
- Organization: Universite de Moncton
- Subject: unsub
-
- unsubscribe Bob LeBlanc
- =========================================================================
- Date: Wed, 16 Nov 1994 11:06:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to FaceSpan
-
- Mark Asked:
- >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>the kind sent from Filemaker ie. an event class and an event id)?
- >>
- >>I can send event from Filemaker to an applet created with the script editor
- >>but not to an applet created with FaceSpan.
- >>
- >>Any help our suggestions would be most appreciated.
- >>Thanks in advance.
- >
- John responded:
- >well, you have the seeds to a work-around!
- >
- >Just make an applet in AppleScript to receive these events, and then send
- >them to the FaceSpan app via "tell" statements... that should work.
- >
- >- john
- >
- >-----------------------------------------
- >js12@gte.com GTE Laboratories
- >John Schettino Waltham, MA
-
- Lets call a club a club - its not a work-around it a kludge!! Funny enough
- I hadn't thought of doing that. Not a bad suggestion but not an ideal
- solution for me. I'm designing applets that are distrubuted to multiple
- users in my institution. If I told them 'well here filemaker for the
- database, and here's an facespan applet to do functions that filemaker
- can't do, oh and ya, here's another application...'.
- I REALLY would like to avoid a scenario like that...
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 16 Nov 1994 10:08:49 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: unsub
- In-Reply-To: Your message of "Wed, 16 Nov 94 12:26:21 -0400"
-
- >unsubscribe Bob LeBlanc
-
- Please send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
- =========================================================================
- Date: Wed, 16 Nov 1994 11:30:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >IUm working on a fairly large & involved AppleScript that manipulates
- >data in several FileMaker Pro files. It all seems to work really well, exce=
- pt
- >for one niggling--and highly frustrating--problem:
- >
- >When I try to obtain the number of records in the current found set,
- >the event never resolves; instead, after a minute or so, I get an RAppleEve=
- nt
- >timed outS dialog box.
- >
- >The problem line is:
- >
- > set rCount to (Count of Layout 1 of Window 1 Class Record)--times
- >out
- >
- >IUve tried it with long time outs and it just doesnUt do any good.
- >
- >
- >Please help!!!
- >
- >
- >FYI: I had the same problem when I ran a FileMaker Script from my
- >AppleScript that did a Find All. When I replaced that call with a simple
- >AppleScript Tshow every record,U it no longer timed out.
-
- The problem is not your 'set count to' command its the command that comes
- before it. Let me guess- the line before it is triggering a Filemaker
- script. This is the crux of the problem: when you trigger a filemaker
- script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
- TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE. Applescript assumes that FM
- is done and issues the next event (your count records command). FM misses
- the command and thus never responds back to it. Applescript waits
- patiently to hear back and eventually times out. There are a couple of
- ways around it, one a simple kludge, the other more industrial strength.
-
- Simple fix: After every 'do script filemaker script' do a repeat loop long
- enough to ensure the FM script will be finished executing.
-
- The simple fix is just that simple - but can cause problems if the script
- is running on slower machines or if the type of FM script that is called
- can have varying length of runs (ie. most take 3 seconds but one big one
- takes 50 seconds - you would have to set the repeat loop to last 50 seconds
- even though most are only 3 seconds...).
-
- Industrial Strength fix: In every filemaker script that is called from
- applescript add a 'send apple event...' command and the end of the script.
- Set the event class to FMPX. Set the event ID to DONE. Then add the
- following code to your applescript:
-
- property okContinue : false
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
-
- on foo()
- tell application "Filemaker Pro"
- Do Script FileMaker Script "whatever script you want"
- if (my canIcontinue()) is false then display dialog "Did not hear from FM
- or FM script took too long to run"
- count class record
- .
- .
- .
- end tell
- end foo
-
-
- on canIcontinue()
- global okContinue
- local startTime
- set startTime to current date
- repeat until ((current date) - (startTime)) > 200
- -- how many seconds to you want to wait to hear back from Filemaker?
- if okContinue is true then
- set okContinue to false
- set startTime to current date -- a small delay to
- ensure FM is ready
- repeat until ((current date) - (startTime)) > 1
- end repeat
- return true
- end if
- end repeat
- set okContinue to false
- return false
- end canIcontinue
-
- Its much more complex but is dynamic: if the FM script only takes 4 seconds
- to run applescript will be issuing the next command 5 or 6 seconds after
- the FM script was called. If the FM script takes 130 seconds to run
- applescript will be issuing the next command 131 or 132 seconds later.
-
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 16 Nov 1994 11:41:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to Fa
-
- >>I wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
- >
- >Hope that helps (and thanks for asking cool questions),
- > Andrew
- >----------------------------------------------------------------------
- >Andrew T. Johnston |
- >Apple Canada, Inc. | Who else would claim these opinions as his own?
- >atjohnst@apple.com |
-
-
-
- Whoopee!! It worked!! You are a god! No more faceless applets for my users!!!
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 16 Nov 1994 12:03:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Changing Folder and File Visibility
-
- I have C code that does this; if one doesn't exist I could probably write an
- osax if I knew how. :D
-
- _Deirdre
-
- Michael Doub asks:
- > Is anyone aware of a osaxen that would allow you to
- > control the visability of a folder or a file from
- > AppleScript? A scriptable version of the BlindFold
- > application would do the trick too. Does it exist?
- =========================================================================
- Date: Wed, 16 Nov 1994 09:38:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Script Editor WorldScript bug fix?
-
- >AppleScript has always implemented this scheme. System 7.5 had no changes
- >to AppleScript (well, OK, they recompiled it with a VERY minor Script
- >Editor WorldScript bug fix).
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Wed, 16 Nov 1994 10:11:34 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE- FMP & Picture fields
-
- Reply to: RE: FMP & Picture fields
- tell application "FileMaker Pro"
- copy cellValue of cell "Picture" to thePicture
- end tell
-
- works fine i.e. the picture data is tored in the variable thePicture. You
- can verify this by setting this data back into the picture field in a new
- record within your database. What exactly do you want to do with the data
- in thePicture after you have copied it.
- =========================================================================
- Date: Wed, 16 Nov 1994 10:24:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: HyperCard + Excel Questions
-
- A few questions:
-
- (1) I've been experimenting with doing AppleScript in HyperCard. The
- on-line documentation is amazingly vague about transfering data back and
- forth, and provides no examples. By looking at the mail merge example
- stack, I saw that they are getting HyperCard data via using HyperTalk
- functions called from AppleScript. I also know I can access fields
- directly.
- * Question: is there a way to get direct access to global HyperTalk variables?
- I can access them when running a script from the script editor and using
- an evaluate expression, but when I try to do this inside HyperCard as
- an AppleScript script, it doesn't work.
-
- * Question: is it possible to using HyperTalk "chunking" expressions from
- AppleScript? I think the answer is know but would appreciate enlightenment.
- I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
-
- (2) What my script does is take a field or variable and turn it into a 2D
- list which can then be dumped into Excel via a named range of cells.
- Here's the one line I tell Excel:
- set value of Range myRange to myArray
- The problem is it executes *really* slowly, like 1 cell per second on
- a PB 170. Any idea what's going on here.
-
- (3) If you'd like to take pot-shots at my script, here it is:
-
- -- this script accesses all HyperCard data via a set of
- -- background HyperTalk functions -- getData*()
-
- on mouseUp
- set saveDelim to AppleScript's text item delimiters
- set AppleScript's text item delimiters to {","}
- set nRows to getDataNRows()
- set nCols to getDataNCols()
- set myArray to {}
- repeat with r from 1 to nRows
- set rowItems to text items of getDataNthRow(r)
- set rowList to {}
- repeat with c from 1 to nCols
- set rowList to rowList & {item c of rowItems as number}
- end repeat
- set myArray to myArray & {rowList}
- end repeat
- set AppleScript's text item delimiters to saveDelim
- set myRange to getDataRange()
-
- tell application "Excel"
- activate
- -- the following line runs painfully slowly!
- set value of Range myRange to myArray
- end tell
- end mouseUp
-
- Thanks!
- Alex
- =========================================================================
- Date: Wed, 16 Nov 1994 13:35:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
- Subject: backgrounding an applescript application
-
- I want to know how to make an applescript saved as a stay open application
- stay in the background (as in, not appearing in the application menu) at
- all times.
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question.
-
- I tried a horrendous hack which, not surprisingly, didn't work: I opened
- the size resource with ResEdit and checked the "Always Background" bit.
- When launched, the script did in fact go into the background, but it also
- crashed my computer when I checked the application menu.
-
- If anyone had other ideas about how to do this, that would be appreciated
- too. I tried to use Cron to do this, but couldn't for the life of me get it
- to open a file. I could beep with it, flash dialogs, open a _program_,
- etcetera, but I absolutely couldn't get it to open a file.
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
- =========================================================================
- Date: Wed, 16 Nov 1994 10:53:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >>From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >>Subject: Accessing the OSA from C
- >>
- >>OK, I see the book on how to do the OSACompile and all that.
- >>
- >>How do I check if these traps are available? There doesn't seem to be a
- >>Gestalt selector for same, nor can I find a way of checking directly.
- >
- >I wondered the same when I first tried to do this... when you try to
- >open the component, it will return NULL if there is no component. I don't
- >know if this works on System 6, but on System 7, it will return NULL if
- >AppleScript is not installed. I don't know if there is a Gestalt call
- >for the Component Manager...
- >
-
- The gestalt selector which lets you know whether the Component Manager is
- present is gestaltComponentMgr ('cpnt'), which returns the version number
- of the Component Manager (4 on my 8100 running System 7.5, your mileage may
- vary).
-
- If Component Manager is not available, the selector is not defined, and
- Gestalt will return an error.
-
- The Component Manager is available under System 6.x and System 7.0.x if and
- only if QuickTime is installed*...it became part of the base System in
- System 7.1
-
- --John
-
- * Or a hypothetical something else which installs Component Manager in
- those old Systems. Sys 7.0 was so long ago--did AppleScript install
- Component Manager, or refuse to run without it, or ...?
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 16 Nov 1994 12:23:41 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
- Organization: the Minnesota Daily
- Subject: Stack overflow error
-
- A fairly large script that I've been working on is consistently
- giving me "Stack Overflow" errors.
-
- What can I do to get this to work inside AppleScript? Note: the
- error is occuring during a tell statement to the Finder.
-
- Besides that, is there any way that my script can receive
- notification when a volume is mounted without doing an idle loop to
- watch for it?
-
- I'm using System 7.5, with the AppleScript Scripter's kit installed.
-
- Thanks,
- Josh Buysse
-
- CAFE Mac Client designer
- University of Minnesota AIS
- =========================================================================
- Date: Wed, 16 Nov 1994 14:32:28 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jonathan Donald <jeddak@PANIX.COM>
- Subject: Re: FMP Timeout Problem!
-
-
- Thanks for your enlightening explanation regarding FileMaker timing out on
- script calls.
-
- IUve begun implementing the industrial-strength fix you described, but IUve
- run into one problem. The apple event handler you specified doesnUt compile:
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
- I get a dialog box that says: RExpected function name, command name or
- function
- name but found R=S.
-
- Also, an observation (please tell me if IUm wrong):
-
- Your technique of having the FileMaker Pro script send an FMPX/DONE event
- assumes that the called script does not call subscripts that are also called
- by the AppleScript.
-
- For example, letUs say I want to call FileMaker script x, and have x confirm
- its
- completion by sending the DONE event. Given this scenario, I canUt call
- script
- x
- from within script y and then call script y from my AppleScript, because the
- DONE event would be sent as soon as script x is completed, not after y is
- completed.
-
-
-
- -jd
- =========================================================================
- Date: Wed, 16 Nov 1994 13:58:11 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Key presses and timing query
-
- > Sorry to ask such a basic question but can
- > anyone tell me how to get back which key a user
- > has pressed from within Applescript?
-
- Jon's Commands 1.2 has the following event:
-
- keys pressed: Get the keys that are currently pressed.
- keys pressed
- Result: string -- A list of key names.
-
- Hope this helps.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Wed, 16 Nov 1994 12:09:04 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: NDN: Newbie on Timer function
-
- Sorry. Your message could not be delivered:
-
- Message contained no valid addresses.
- =========================================================================
- Date: Thu, 17 Nov 1994 09:03:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AOCE listservs (was Re: Listserv scripts on the Mac)
-
- David Jokinen <ground@INTERLINK.NET> writes:
-
- >I wonder what would happen if we were to try this instead via PowerTalk
- >gateways, which will offer the potential for a multi-system listserv
- >(probably the world's first!) The concept of messages coming in and going out
- >via any combination of carriers is exciting, especially when you consider
- >that PowerTalk automatically delivers messages in the best possible format,
- >not the least common format.
- >
- >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- >Internet one, in particular, is a dream. I heartily recommend Mail*Link
- >PT/INET from StarNine. Its handling of enclosures is totally transparent,
- >plus you get to use all the fancy address catalogs.
- >
- >So the plan would be: incoming->PowerShare->AOCE
- >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- >daemon area, but I know something better is possible. Just look at the sheer
- >size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- Before you get too enthused, bear in mind that the current public AOCE APIs
- aren't really up to the task. PowerRules was done using APIs which were not
- made generally public, because they were not guaranteed to be stable enough
- for public use.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Wed, 16 Nov 1994 12:27:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Frontier: dialog.runModeless question
-
- >>The problem is that dialog.run is kind enough to center the
- >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
- >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
- >>depending on whether it's docked or undocked. Thanks.
- >
- >Hi, David...
- > In probing here, it appears that you can adjust the rectangle in the
- >DLOG resource, and have an effect on where the dialog will be displayed.
- >If I put the dialog "fairly far to the right and down", dialog.runModeless
- >places it a little up and left from where dialog.run does. If I build the
- >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
- >places it.
- >
- Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
- have one custom dialog file which places it off-center on one of the
- screens. I can have two custom dialog files, and use the kludge of
- switching between them depending on the existance of a disk I know to be
- present only in the dock. (I've never figured out a gestalt selector for
- the presence of a dock, but I haven't looked at the latest version of the
- list.) Or I could execute this as part of the pre-display case in the
- callback routine:
-
- KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
-
- which is visually dippy since the dialog is displayed in the wrong place
- for a split second. I guess that any of them are good enough for my own
- use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
- still, it would be nice to have the same background timing mechanism for
- dialog.run that exists for dialog.runModeless. Thanks.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Wed, 16 Nov 1994 13:20:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Sending raw events to FaceSpan
-
- >Mark Asked:
- >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>>the kind sent from Filemaker ie. an event class and an event id)?
- >>>
- >>>I can send event from Filemaker to an applet created with the script editor
- >>>but not to an applet created with FaceSpan.
- >>>
- >>>Any help our suggestions would be most appreciated.
- >>>Thanks in advance.
- >>
- >John responded:
- >>well, you have the seeds to a work-around!
- >>
- >>Just make an applet in AppleScript to receive these events, and then send
- >>them to the FaceSpan app via "tell" statements... that should work.
- >>
- >>- john
- >>
- >>-----------------------------------------
- >>js12@gte.com GTE Laboratories
- >>John Schettino Waltham, MA
- >
- >Lets call a club a club - its not a work-around it a kludge!! Funny enough
- >I hadn't thought of doing that. Not a bad suggestion but not an ideal
- >solution for me. I'm designing applets that are distrubuted to multiple
- >users in my institution. If I told them 'well here filemaker for the
- >database, and here's an facespan applet to do functions that filemaker
- >can't do, oh and ya, here's another application...'.
- >I REALLY would like to avoid a scenario like that...
- >
-
- It also won't help, unless the kludge applet also translates the event into
- one which you can receive in a FaceSpan applet. But...FileMaker could send
- that directly, without the kludge. Basically, a dead end.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 16 Nov 1994 13:23:30 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE-FMP Creating a new recor
-
- Subject: Time:13:20
- OFFICE MEMO RE:FMP Creating a new record with Date:11/16/94
- If you want to fill out all the fields in the new record then you can set the
- data to layout 0 (layout 0 is a conceptual layout consisting of all the
- fields defined in the database, the fields are ordered according to their
- creation order). On layouts other than layout 0 the data will also be set to
- the fields according to their creation order however data will only be set
- into the fields that actually exist on that layout.
-
- Layout 0 has all fields in creation order.
- Layout nth Layout has the fields that exist on that layout in creation order.
-
- Stephen
- =========================================================================
- Date: Wed, 16 Nov 1994 16:31:59 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): FMP Timeout Problem!
-
- Much thanks to Mark Hadfield for finally clearing up this common FileMaker
- script problem. Now, could someone please clarify the meaning of the
- following construct he used?
-
- > on =ABevent FMPXDONE=BB
- > set okContinue to true
- > end =ABevent FMPXDONE=BB
-
- I presume it's some kind of AppleEvent handler, but I don't recognize the
- syntax, nor could I find anything like it in the AppleScript Language Guide.
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
- =========================================================================
- Date: Wed, 16 Nov 1994 17:18:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
- Subject: Re: unsub
- In-Reply-To: <9411161857.AA64859@hermes.acs.ryerson.ca>
-
- Unsubscribe Jason Komaromi
- =========================================================================
- Date: Wed, 16 Nov 1994 16:35:19 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: AAAAARRRGGGHHHH
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
- =========================================================================
- Date: Wed, 16 Nov 1994 17:49:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >Mark:
- >
- >Thanks for your enlightening explanation regarding FileMaker timing out on
- >script calls.
- >
- >IUve begun implementing the industrial-strength fix you described, but IUve
- >run into one problem. The apple event handler you specified doesnUt compile=
- :
- >
- > on =3DABevent FMPXDONE=3DBB
- > set okContinue to true
- > end =3DABevent FMPXDONE=3DBB
- >
- >I get a dialog box that says: RExpected function name, command name or
- >function
- >name but found R=3DS.
- >
- >Also, an observation (please tell me if IUm wrong):
- >
- >Your technique of having the FileMaker Pro script send an FMPX/DONE event
- >assumes that the called script does not call subscripts that are also calle=
- d
- >by the AppleScript.
- >
- >For example, letUs say I want to call FileMaker script x, and have x confir=
- m
- >its
- >completion by sending the DONE event. Given this scenario, I canUt call
- >script
- >x
- >from within script y and then call script y from my AppleScript, because th=
- e
- >DONE event would be sent as soon as script x is completed, not after y is
- >completed.
- >
- It doesn't compile because you haven't use the chevron characers.
- To create the chevron characters =AB=BB, use option-\ and shift-option-\.
-
- As far as your other question I'm not sure what you mean but it sounds like
- it should be able to be done. Performing subscripts should not change the
- equation.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 16 Nov 1994 16:10:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: Key presses and timing query
-
- >Sorry to ask such a basic question but can anyone tell me how to get back
- >which key a user has pressed from within Applescript?
-
- Try the Jon's Commands OSAX
- (available via FTP at gaea.kgs.ukans.edu:applescript/)
- It has a command called "keys pressed" that works like a charm.
-
- >While I'm at it, does anyone know of a more accurate way of timing an
- >operation in Applescript other than using the time to the nearest second?
- >Tenths of a second would be good enough.
-
- Again, Jon's Commands to the rescue -- it has a command called "the ticks"
- which tells you the current value of the system's tick count, which I
- believe is measured in 60ths of a second.
-
- Boy those commands are great!
-
- Matthew
-
- ----------------------------------------------------------------------------
- --------
- "Believe nothing, no matter where you read it, or who said it -- even if I
- have said
- it -- unless it agrees with your own reason and your common sense.
- --The Buddha
- ----------------------------------------------------------------------------
- --------
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
- =========================================================================
- Date: Wed, 16 Nov 1994 17:52:18 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: backgrounding an applescript application
-
- Get ScriptHider from the gaea ftp site.
-
-
- >I want to know how to make an applescript saved as a stay open application
- >stay in the background (as in, not appearing in the application menu) at
- >all times.
- >
- >Here's what I'm trying to do: I have a little script that, if it's two
- >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- >database, and then quits it. I'm doing this so that the Today function gets
- >recalculated every day and at a time when no one is using it so they don't
- >have to sit through the calculation.
- >Clearly, this script needs to be open at all times, and I can't trust the
- >users of the system not to quit it if they see it in the application menu.
- >Hence my question.
- >
- >I tried a horrendous hack which, not surprisingly, didn't work: I opened
- >the size resource with ResEdit and checked the "Always Background" bit.
- >When launched, the script did in fact go into the background, but it also
- >crashed my computer when I checked the application menu.
- >
- >If anyone had other ideas about how to do this, that would be appreciated
- >too. I tried to use Cron to do this, but couldn't for the life of me get it
- >to open a file. I could beep with it, flash dialogs, open a _program_,
- >etcetera, but I absolutely couldn't get it to open a file.
- >
- >Any help would be appreciated. Thanks.
- >
- >Aaron Brockett
- >abrocke1@cc.swarthmore.edu
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999 )
- =========================================================================
- Date: Wed, 16 Nov 1994 15:55:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Listserv scripts on the Mac (Frontier)
-
- >>
- >>My only suggestion would be that you might use Frontier. I know that Dave
- >>Winer has implemented pretty much what you descibe with just Frontier and
- >>Eudara alone. No need for the scriptable finder, osax, or anything else to
- >>get the job done.
- >>
- >>Doug
- >
- >where can i get this? does it work with the frontier runtime.
-
- I don't know if Dave is sharing his scripts at this point. Probably not,
- would be my guess. I'll ask him. But in any case, it really shouldn't be
- that hard to write. It's mostly a matter of text parsing and maintaining
- tables (lists). I would expect any such system to work fine with Runtime.
-
- Doug
- =========================================================================
- Date: Wed, 16 Nov 1994 20:31:05 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: I got this?
-
- Any one ever gotten this from the listserv here?:
-
- Sorry. Your message could not be delivered:
- Message contained no valid addresses.
-
- The subject line was: NDN: Newbie on Timer function
- and I never sent a message like that. Any ideas?
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 20:03:17 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Script Editor WorldScript bug fix?
-
- I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
- 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
- things I noticed after installed System 7.5. I'm now using B&W formatting for
- my scripts, which is less informative but works better.
-
- I've noticed something else that's strange, though it might fall under the
- category of a system problem. My shared libraries, ObjectSupportLib and
- AppleScriptLib have had generic icons ever since I installed System 7.5. Has
- anyone else noticed this and isn't it odd?
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Thu, 17 Nov 1994 20:22:45 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: backgrounding an applescript application
-
- I'm sure others here will offer better solutions, but I'm running certain
- applets overnight using QuicKeys' timer function.
-
- For instance, I have a Check Mail applet that I run at the same time every
- morning. Rather than having it launch as a startup script, I opted to handle
- it this way because I have three other startup scripts and wanted to give
- this one full attention when it was running since they all seem to get
- launced concurrently.
-
- Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
- just too unstable at that time for my uses. I should probably look at one of
- the newer version because I really liked the concept.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question....
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
- =========================================================================
- Date: Wed, 16 Nov 1994 21:32:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Allan R. Crump Jr" <jhhw@CRL.COM>
- Subject: OSAX source??
-
- I am an avid learner in programming and have enjoyed every moment of
- putting the finishing touches on my first application. For my next
- project, I am trying to finish up my first OSAX, written in Think Pascal.
- I am having a bit of trouble however, with the compiler complaining that
- "THEPORT" is not defined. I have insured that all of the correct
- libraries are added to the project and in the right order, and that my
- syntax is correct.
-
- Would someone (preferably a Pascal programmer) be willing to post or
- forward some source code on the creation of their OSAX so I can compare and
- see what I may be doing wrong ? There seems to be little sample code in
- pascal available, and I feel like I'm flying by the seat of my pants here.
-
- Allan
- =========================================================================
- Date: Wed, 16 Nov 1994 23:07:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Script Editor WorldScript bug fix?
-
- >>AppleScript has always implemented this scheme. System 7.5 had no changes
- >>to AppleScript (well, OK, they recompiled it with a VERY minor Script
- >>Editor WorldScript bug fix).
- >
- >Too minor for Power Macs -- do the earlier versions of the script editor
- >have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
-
- It's not just Script Editor which has the problem...it just shows up more
- often in multi-styled lines such as scripts. And it's not "off by one."
- [Note that the farther right you click, the bigger the error, provided
- there are a bunch of style runs, such as you can get by referencing a file
- deep in a folder nest.]
-
- Having noted that, select the whole script, Copy, and Paste the script into
- SimpleText. Note that the incorrect selection "follows" the script.
-
- The fix shouldn't come from the AppleScript team...it seems to need to come
- from whoever has custody of the WorldScript=81 Power Adaptor extension thing=
- .
- --John
-
- ----
- On my machine with my settings, this script (that reveal is all one line,
- and the folder "Metrowerks..." part fits in the right edge of a wide script
- editor window, and it's off by about 3 1/2 in that particular "folder":
-
- tell application "Finder"
- reveal file "AEObjects.h" of folder "CIncludes" of folder
- "AppleScript" of folder "System Extras =9F" of folder "Metrowerks C/C++ =9F"=
- of
- folder "CodeWarrior" of disk "Lopez"
- end tell
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 16 Nov 1994 23:07:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: backgrounding an applescript application
-
- At 10:35 11/16/94, Aaron Brockett wrote:
- >If anyone had other ideas about how to do this, that would be appreciated
- >too. I tried to use Cron to do this, but couldn't for the life of me get it
- >to open a file. I could beep with it, flash dialogs, open a _program_,
- >etcetera, but I absolutely couldn't get it to open a file.
-
- Cron should be able to open a Script Application, containing your script to
- quit FileMaker and restart it. [I haven't used Cron...I do things like
- that with Frontier's scheduler suite (but not much, since my schedule is to
- variable to know when I want what done on a hands-off basis.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 17 Nov 1994 03:01:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Changing Folder and File Visibility
- In-Reply-To: <199411170505.AAA05397@acme.freenet.columbus.oh.us>
-
- Michael Doub asks:
- > Is anyone aware of a osaxen that would allow you to
- > control the visability of a folder or a file from
- > AppleScript?
-
- One of the commands in the XCMD OSAX is "Set Show Or Hide Folder".
-
- I don't know about doing files, however.
- =========================================================================
- Date: Thu, 17 Nov 1994 00:16:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: backgrounding an applescript application
-
- Dennis Whiteman <ultimate@MAIL.ICON.NET> wrote:
- >I'm sure others here will offer better solutions, but I'm running certain
- >applets overnight using QuicKeys' timer function.
-
- I'm on it. ;)
-
- >For instance, I have a Check Mail applet that I run at the same time every
- >morning. Rather than having it launch as a startup script, I opted to handle
- >it this way because I have three other startup scripts and wanted to give
- >this one full attention when it was running since they all seem to get
- >launced concurrently.
-
- The trick to avoiding the concurancy is to write a script runner. I'm
- leaving it as an exercise for the reader, but here are a few ideas.
-
- First off, use a property to store either the scripts themselves or aliases
- to the script files. You could drop files onto the script to make it
- remember them. You could put up a dialog when you drop a file which would
- allow you to delete files from the list or whatever configuration details
- you might need. This would all be done in the open handler.
-
- Or you can simply edit all the stuff into the code, which has the benefit
- of being decompilable and preconfigured. ;)
-
- Then in the idle handler you would step through the list and do something like:
-
- tell item 1 of scriptList to run
-
- for the saved script version or, for the stored alias version:
-
- set s to load script item 1 of scriptList
- tell s to run
- store script s in item 1 of scriptList replacing yes
-
- You need to save the script in case it modifies any of its properties.
- This will save them onto disk, while the first version will save them, but
- only within the master script file's copy. Once again, it's your goal
- which decides which way you should implement it.
-
- You could also vary the technique to store a list of files to run a script
- on, or any of a zillion permutations. Regardless, you can put this script
- into your startup folder and it will run your scripts, one at a time.
-
- Jon
- =========================================================================
- Date: Thu, 17 Nov 1994 03:30:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: buyer's remorse
-
- When I heard about the System 7.5 upgrade I thought, "that sounds like a
- good deal. I can get the Scriptable Finder, which I otherwise would have
- to pay at least $25 for, and all that other stuff thrown in for a few
- bucks more."
-
- Now that I've been struggling to live with 7.5 for awhile, I feel I made a
- bad decision. If I'd bought the Finder thingee, I would have gotten some
- documentation with it and still been able to use my old system which
- worked with everything I was trying to run on it. (And, yes, another $25
- bucks here or there _is_ a big deal to me. If you want to try being my
- agent and making my surplus of talents a boon rather than an impediment to
- my income you're welcome, otherwise keep your opinions on the value of a
- dollar to yourselves.)
-
- I'm assuming, anyway, from my one experiment with it that I _can't_ use
- the Finder that came with 7.5 with my 7.1 System. It seemed to work at
- first, but I couldn't move anything to or from the Desktop. Or, was that
- just because my way of attempting to disable the old Finder without
- actually throwing it away was to put it on the Desktop? Was that my
- mistake? Is there any way of using the Scriptable Finder as it came with
- 7.5 with the old System.
-
- I suppose I'll want to throw in the towel and keep living in the future,
- anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
- the moment, aside from the pretty little desktop pattern I doodled out
- late one night. The crashes I get are so random and unreproducible, I
- don't know where to begin to stabilize things. Anyone seen any
- compilations of actual real figured out incompatabilities anywhere?
-
- B.
- =========================================================================
- Date: Thu, 17 Nov 1994 04:02:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error
- confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
-
- --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Wed, Nov 16, 1994 11:00 PM
- Subject: MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
- To: Doherty, John; Mobilio, Dominick
- File(s): Attach.Txt1
-
- Regarding Message ID : 10400071114991/585236@MAIL1
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 16-NOV-1994 23:00:23.00
- There are 39 messages totalling 1233 lines in this issue.
-
- Topics of the day:
-
- 1. "Get Terminology" event question
- 2. Sending raw events to FaceSpan (3)
- 3. Listserv scripts on the Mac
- 4. MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994 (2)
- 5. Re(2): Listserv scripts on the Mac
- 6. Newbie on Timer function
- 7. Re (2)
- 8. Changing Folder and File Visibility (2)
- 9. Key presses and timing query (3)
- 10. unsub (3)
- 11. FMP Timeout Problem! (3)
- 12. Sending raw events to Fa
- 13. Script Editor WorldScript bug fix? (2)
- 14. RE- FMP & Picture fields
- 15. HyperCard + Excel Questions
- 16. backgrounding an applescript application (3)
- 17. Stack overflow error
- 18. NDN: Newbie on Timer function
- 19. AOCE listservs (was Re: Listserv scripts on the Mac)
- 20. Frontier: dialog.runModeless question
- 21. RE-FMP Creating a new recor
- 22. Re(2): FMP Timeout Problem!
- 23. AAAAARRRGGGHHHH
- 24. Listserv scripts on the Mac (Frontier)
- 25. I got this?
-
- ----------------------------------------------------------------------
-
- Date: Wed, 16 Nov 1994 00:11:22 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- Brian Hall <mspace@NETCOM.COM> wrote:
- >
- >It used to be that an app had to support the "Get Terminology" event if
- >people were to be able to write:
- >tell application "foo" of machine "bar"
- > whatever
- >end tell
- >
- >So that SE could syntax check.
-
- I don't recall this ever being the case. Most likely you didn't have
- AppleScript installed on the remote machine. I'm pretty sure that you need
- to have AppleScript there so that it has the system GetTerminology handler
- installed. I suppose implementing one would work, but it's not the
- simplest solution. ;)
-
- >System 7.5 to the rescue:
- >It seems that the version of AppleScript that ships with 7.5 must install a
- >system wide handler for this event, so even if the target app *does not*
- >support the GT event, the extension will suck the resource out the app and
- >pass it back for you. This is mostly a good thing. The only apps that
- >should mind are those that have dynamic 'aete' - and are there any yet?
-
- AppleScript has always implemented this scheme. System 7.5 had no changes
- to AppleScript (well, OK, they recompiled it with a VERY minor Script
- Editor WorldScript bug fix).
-
- Also, as we were discussing a few days ago, Quark is the only app I know
- which supports dynamic terminologies, but I have yet to see an extension
- which has a dictionary.
-
- >A side effect of this may be that if the app *is running* on that remote
- >machine, perhaps it would load the resource in that heap? (A guess)
-
- I believe that you MUST have the remote app running in order to script it.
- Someone needs to be the target of the GetTerminology event. As I stated
- before, the resource gets loaded, detatched and returned (copied) in the
- GetTerminology reply. The original should be purgeable, but I don't think
- it gets marked so by AppleScript (this is a good thing for the
- investigative among you to check).
-
- Jon
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:11:25 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Sending raw events to FaceSpan
-
- Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
- >
- >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
-
- I can explain all of this. FaceSpan registers its events in suites. So,
- it registers handlers for 'aevt****', 'core****' and 'misc****', among
- others. Thus, the custom event you were trying to accept wouldn't have a
- handler installed for it. If you made it fall into one of these suites, it
- would have a handler installed, although there's no guarentee that an app
- will do anything sensible with the event once the handler got it.
-
- I would have expected that applets would do the same thing that Hypercard
- does, which is to install a '********' handler and just deal with whatever
- comes in. They don't though. They register a quit event and install a
- phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
- equals 'phac' and is not named after Phac Le Tuan). This phac handler gets
- every event BEFORE it gets sent to its proper handler. I don't know why
- its done this way, but I'll see if I can find out. It's probably just a
- dispatch optimization.
-
- As a final note, the reason why 'syso' events go weird is that the "choose
- folder" osax registers as the 'syso****' handler. This means that any
- events with class 'syso' and are not handled by an explicit handler, get
- sent there and you get the Choose Folder dialog. I think this might
- qualify as a bug. Someone should try finding the "choose folder" event in
- the aete and change the osax name to match that and see if it still works.
- I wonder if there are any other 'syso' events that it handles. Time to
- snoop the code, I guess. ;)
-
- Jon
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:15:34 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Listserv scripts on the Mac
-
- >Hello,
- >
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- This is the sort of largish job I would tend to do with Frontier, rather
- than with AppleScript. [Eudora would be fine as the mailing application.]
- Several of Frontier's capabilities make sense here (your list might be an
- outline in the Frontier database, rather than a separate text file. The
- outline editor in Frontier is nicely scriptable.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:37:09 -0800
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >Subject: Accessing the OSA from C
- >
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- I wondered the same when I first tried to do this... when you try to
- open the component, it will return NULL if there is no component. I don't
- know if this works on System 6, but on System 7, it will return NULL if
- AppleScript is not installed. I don't know if there is a Gestalt call
- for the Component Manager...
-
- ex.
- gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
- kAppleScriptSubtype);
-
- To check if AppleScript loaded (later in program) ...
-
- if (gScriptingComponent != NULL)
- {
- ... do OSAExecute, etc.
- }
-
- BTW, a good article/sample to use if you are trying to get started with OSA
- calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
- for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
-
- Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
- that will tell you if AppleEvents are present, but not if AppleScript is...
-
-
- -- Alex
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 04:34:15 -0500
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): Listserv scripts on the Mac
-
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- I, too, would like to offer a Macintosh-based list server. In fact, I would
- very much like to get involved in creating it.
-
- I wonder what would happen if we were to try this instead via PowerTalk
- gateways, which will offer the potential for a multi-system listserv
- (probably the world's first!) The concept of messages coming in and going out
- via any combination of carriers is exciting, especially when you consider
- that PowerTalk automatically delivers messages in the best possible format,
- not the least common format.
-
- To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- Internet one, in particular, is a dream. I heartily recommend Mail*Link
- PT/INET from StarNine. Its handling of enclosures is totally transparent,
- plus you get to use all the fancy address catalogs.
-
- So the plan would be: incoming->PowerShare->AOCE
- daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- daemon area, but I know something better is possible. Just look at the sheer
- size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:44:50 +0100
- From: Chris Remie <chris@MEDIAMATIC.NL>
- Subject: Newbie on Timer function
-
- Hi,
- I'm new here so have mercy.
- Is there a way to make a script that performs a task at a certain time every
- day?
- Thanks,
- Chris Remie
-
- Mediamatic Magazine
- Mediamatic Interactive Publishing
-
- postbus 17490
- 1001 JL Amsterdam
- the Netherlands
-
- vox: +31 - 20 626 6262
- fax: +31 - 20 626 3793
- www: http://mmol.mediamatic.nl
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:36:40 -0500
- From: Gary Morrison <MORRISG@ORG.BITNET>
- Subject: Re
-
- unsubcribe
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:43:23 -0500
- From: "Michael D. Doub" <doub@DG-RTP.DG.COM>
- Subject: Changing Folder and File Visibility
-
- Is anyone aware of a osaxen that would allow you to control the visability
- of a folder or a file from AppleScript? A scriptable version of the
- BlindFold application would do the trick too. Does it exist?
-
- Thanks
- Mike
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 14:23:23 +0000
- From: David Davies <d.a.davies@BHAM.AC.UK>
- Subject: Key presses and timing query
-
- Sorry to ask such a basic question but can anyone tell me how to get back
- which key a user has pressed from within Applescript?
-
- While I'm at it, does anyone know of a more accurate way of timing an
- operation in Applescript other than using the time to the nearest second?
- Tenths of a second would be good enough.
-
- Thanks,
-
- David Davies
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:55:45 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re
-
- >unsubcribe
-
- Send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:26:21 AST4ADT
- From: LEBLANR@UMONCTON.CA
- Subject: unsub
-
- unsubscribe Bob LeBlanc
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:06:23 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to FaceSpan
-
- Mark Asked:
- >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>the kind sent from Filemaker ie. an event class and an event id)?
- >>
- >>I can send event from Filemaker to an applet created with the script editor
- >>but not to an applet created with FaceSpan.
- >>
- >>Any help our suggestions would be most appreciated.
- >>Thanks in advance.
- >
- John responded:
- >well, you have the seeds to a work-around!
- >
- >Just make an applet in AppleScript to receive these events, and then send
- >them to the FaceSpan app via "tell" statements... that should work.
- >
- >- john
- >
- >-----------------------------------------
- >js12@gte.com GTE Laboratories
- >John Schettino Waltham, MA
-
- Lets call a club a club - its not a work-around it a kludge!! Funny enough
- I hadn't thought of doing that. Not a bad suggestion but not an ideal
- solution for me. I'm designing applets that are distrubuted to multiple
- users in my institution. If I told them 'well here filemaker for the
- database, and here's an facespan applet to do functions that filemaker
- can't do, oh and ya, here's another application...'.
- I REALLY would like to avoid a scenario like that...
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:08:49 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: unsub
-
- >unsubscribe Bob LeBlanc
-
- Please send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:30:44 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >IUm working on a fairly large & involved AppleScript that manipulates
- >data in several FileMaker Pro files. It all seems to work really well, exce=
- pt
- >for one niggling--and highly frustrating--problem:
- >
- >When I try to obtain the number of records in the current found set,
- >the event never resolves; instead, after a minute or so, I get an RAppleEve=
- nt
- >timed outS dialog box.
- >
- >The problem line is:
- >
- > set rCount to (Count of Layout 1 of Window 1 Class Record)--times
- >out
- >
- >IUve tried it with long time outs and it just doesnUt do any good.
- >
- >
- >Please help!!!
- >
- >
- >FYI: I had the same problem when I ran a FileMaker Script from my
- >AppleScript that did a Find All. When I replaced that call with a simple
- >AppleScript Tshow every record,U it no longer timed out.
-
- The problem is not your 'set count to' command its the command that comes
- before it. Let me guess- the line before it is triggering a Filemaker
- script. This is the crux of the problem: when you trigger a filemaker
- script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
- TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE. Applescript assumes that FM
- is done and issues the next event (your count records command). FM misses
- the command and thus never responds back to it. Applescript waits
- patiently to hear back and eventually times out. There are a couple of
- ways around it, one a simple kludge, the other more industrial strength.
-
- Simple fix: After every 'do script filemaker script' do a repeat loop long
- enough to ensure the FM script will be finished executing.
-
- The simple fix is just that simple - but can cause problems if the script
- is running on slower machines or if the type of FM script that is called
- can have varying length of runs (ie. most take 3 seconds but one big one
- takes 50 seconds - you would have to set the repeat loop to last 50 seconds
- even though most are only 3 seconds...).
-
- Industrial Strength fix: In every filemaker script that is called from
- applescript add a 'send apple event...' command and the end of the script.
- Set the event class to FMPX. Set the event ID to DONE. Then add the
- following code to your applescript:
-
- property okContinue : false
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
-
- on foo()
- tell application "Filemaker Pro"
- Do Script FileMaker Script "whatever script you want"
- if (my canIcontinue()) is false then display dialog "Did not hear from FM
- or FM script took too long to run"
- count class record
- .
- .
- .
- end tell
- end foo
-
-
- on canIcontinue()
- global okContinue
- local startTime
- set startTime to current date
- repeat until ((current date) - (startTime)) > 200
- -- how many seconds to you want to wait to hear back from Filemaker?
- if okContinue is true then
- set okContinue to false
- set startTime to current date -- a small delay to
- ensure FM is ready
- repeat until ((current date) - (startTime)) > 1
- end repeat
- return true
- end if
- end repeat
- set okContinue to false
- return false
- end canIcontinue
-
- Its much more complex but is dynamic: if the FM script only takes 4 seconds
- to run applescript will be issuing the next command 5 or 6 seconds after
- the FM script was called. If the FM script takes 130 seconds to run
- applescript will be issuing the next command 131 or 132 seconds later.
-
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:41:12 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to Fa
-
- >>I wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
- >
- >Hope that helps (and thanks for asking cool questions),
- > Andrew
- >----------------------------------------------------------------------
- >Andrew T. Johnston |
- >Apple Canada, Inc. | Who else would claim these opinions as his own?
- >atjohnst@apple.com |
-
-
-
- Whoopee!! It worked!! You are a god! No more faceless applets for my users!!!
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:03:23 -0500
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Changing Folder and File Visibility
-
- I have C code that does this; if one doesn't exist I could probably write an
- osax if I knew how. :D
-
- _Deirdre
-
- Michael Doub asks:
- > Is anyone aware of a osaxen that would allow you to
- > control the visability of a folder or a file from
- > AppleScript? A scriptable version of the BlindFold
- > application would do the trick too. Does it exist?
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 09:38:23 -0800
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Script Editor WorldScript bug fix?
-
- >AppleScript has always implemented this scheme. System 7.5 had no changes
- >to AppleScript (well, OK, they recompiled it with a VERY minor Script
- >Editor WorldScript bug fix).
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:11:34 U
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE- FMP & Picture fields
-
- Reply to: RE: FMP & Picture fields
- tell application "FileMaker Pro"
- copy cellValue of cell "Picture" to thePicture
- end tell
-
- works fine i.e. the picture data is tored in the variable thePicture. You
- can verify this by setting this data back into the picture field in a new
- record within your database. What exactly do you want to do with the data
- in thePicture after you have copied it.
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:24:16 -0800
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: HyperCard + Excel Questions
-
- A few questions:
-
- (1) I've been experimenting with doing AppleScript in HyperCard. The
- on-line documentation is amazingly vague about transfering data back and
- forth, and provides no examples. By looking at the mail merge example
- stack, I saw that they are getting HyperCard data via using HyperTalk
- functions called from AppleScript. I also know I can access fields
- directly.
- * Question: is there a way to get direct access to global HyperTalk variables?
- I can access them when running a script from the script editor and using
- an evaluate expression, but when I try to do this inside HyperCard as
- an AppleScript script, it doesn't work.
-
- * Question: is it possible to using HyperTalk "chunking" expressions from
- AppleScript? I think the answer is know but would appreciate enlightenment.
- I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
-
- (2) What my script does is take a field or variable and turn it into a 2D
- list which can then be dumped into Excel via a named range of cells.
- Here's the one line I tell Excel:
- set value of Range myRange to myArray
- The problem is it executes *really* slowly, like 1 cell per second on
- a PB 170. Any idea what's going on here.
-
- (3) If you'd like to take pot-shots at my script, here it is:
-
- -- this script accesses all HyperCard data via a set of
- -- background HyperTalk functions -- getData*()
-
- on mouseUp
- set saveDelim to AppleScript's text item delimiters
- set AppleScript's text item delimiters to {","}
- set nRows to getDataNRows()
- set nCols to getDataNCols()
- set myArray to {}
- repeat with r from 1 to nRows
- set rowItems to text items of getDataNthRow(r)
- set rowList to {}
- repeat with c from 1 to nCols
- set rowList to rowList & {item c of rowItems as number}
- end repeat
- set myArray to myArray & {rowList}
- end repeat
- set AppleScript's text item delimiters to saveDelim
- set myRange to getDataRange()
-
- tell application "Excel"
- activate
- -- the following line runs painfully slowly!
- set value of Range myRange to myArray
- end tell
- end mouseUp
-
- Thanks!
- Alex
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:35:10 -0500
- From: Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
- Subject: backgrounding an applescript application
-
- I want to know how to make an applescript saved as a stay open application
- stay in the background (as in, not appearing in the application menu) at
- all times.
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question.
-
- I tried a horrendous hack which, not surprisingly, didn't work: I opened
- the size resource with ResEdit and checked the "Always Background" bit.
- When launched, the script did in fact go into the background, but it also
- crashed my computer when I checked the application menu.
-
- If anyone had other ideas about how to do this, that would be appreciated
- too. I tried to use Cron to do this, but couldn't for the life of me get it
- to open a file. I could beep with it, flash dialogs, open a _program_,
- etcetera, but I absolutely couldn't get it to open a file.
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:53:43 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >>From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >>Subject: Accessing the OSA from C
- >>
- >>OK, I see the book on how to do the OSACompile and all that.
- >>
- >>How do I check if these traps are available? There doesn't seem to be a
- >>Gestalt selector for same, nor can I find a way of checking directly.
- >
- >I wondered the same when I first tried to do this... when you try to
- >open the component, it will return NULL if there is no component. I don't
- >know if this works on System 6, but on System 7, it will return NULL if
- >AppleScript is not installed. I don't know if there is a Gestalt call
- >for the Component Manager...
- >
-
- The gestalt selector which lets you know whether the Component Manager is
- present is gestaltComponentMgr ('cpnt'), which returns the version number
- of the Component Manager (4 on my 8100 running System 7.5, your mileage may
- vary).
-
- If Component Manager is not available, the selector is not defined, and
- Gestalt will return an error.
-
- The Component Manager is available under System 6.x and System 7.0.x if and
- only if QuickTime is installed*...it became part of the base System in
- System 7.1
-
- --John
-
- * Or a hypothetical something else which installs Component Manager in
- those old Systems. Sys 7.0 was so long ago--did AppleScript install
- Component Manager, or refuse to run without it, or ...?
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:23:41 CST
- From: Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
- Subject: Stack overflow error
-
- A fairly large script that I've been working on is consistently
- giving me "Stack Overflow" errors.
-
- What can I do to get this to work inside AppleScript? Note: the
- error is occuring during a tell statement to the Finder.
-
- Besides that, is there any way that my script can receive
- notification when a volume is mounted without doing an idle loop to
- watch for it?
-
- I'm using System 7.5, with the AppleScript Scripter's kit installed.
-
- Thanks,
- Josh Buysse
-
- CAFE Mac Client designer
- University of Minnesota AIS
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 14:32:28 -0500
- From: Jonathan Donald <jeddak@PANIX.COM>
- Subject: Re: FMP Timeout Problem!
-
-
- Thanks for your enlightening explanation regarding FileMaker timing out on
- script calls.
-
- IUve begun implementing the industrial-strength fix you described, but IUve
- run into one problem. The apple event handler you specified doesnUt compile:
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
- I get a dialog box that says: RExpected function name, command name or
- function
- name but found R=S.
-
- Also, an observation (please tell me if IUm wrong):
-
- Your technique of having the FileMaker Pro script send an FMPX/DONE event
- assumes that the called script does not call subscripts that are also called
- by the AppleScript.
-
- For example, letUs say I want to call FileMaker script x, and have x confirm
- its
- completion by sending the DONE event. Given this scenario, I canUt call
- script
- x
- from within script y and then call script y from my AppleScript, because the
- DONE event would be sent as soon as script x is completed, not after y is
- completed.
-
-
-
- -jd
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:58:11 U
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Key presses and timing query
-
- > Sorry to ask such a basic question but can
- > anyone tell me how to get back which key a user
- > has pressed from within Applescript?
-
- Jon's Commands 1.2 has the following event:
-
- keys pressed: Get the keys that are currently pressed.
- keys pressed
- Result: string -- A list of key names.
-
- Hope this helps.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:09:04 GMT
- From: Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
- Subject: NDN: Newbie on Timer function
-
- Sorry. Your message could not be delivered:
-
- Message contained no valid addresses.
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 09:03:00 +1300
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AOCE listservs (was Re: Listserv scripts on the Mac)
-
- David Jokinen <ground@INTERLINK.NET> writes:
-
- >I wonder what would happen if we were to try this instead via PowerTalk
- >gateways, which will offer the potential for a multi-system listserv
- >(probably the world's first!) The concept of messages coming in and going out
- >via any combination of carriers is exciting, especially when you consider
- >that PowerTalk automatically delivers messages in the best possible format,
- >not the least common format.
- >
- >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- >Internet one, in particular, is a dream. I heartily recommend Mail*Link
- >PT/INET from StarNine. Its handling of enclosures is totally transparent,
- >plus you get to use all the fancy address catalogs.
- >
- >So the plan would be: incoming->PowerShare->AOCE
- >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- >daemon area, but I know something better is possible. Just look at the sheer
- >size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- Before you get too enthused, bear in mind that the current public AOCE APIs
- aren't really up to the task. PowerRules was done using APIs which were not
- made generally public, because they were not guaranteed to be stable enough
- for public use.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:27:45 -0800
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Frontier: dialog.runModeless question
-
- >>The problem is that dialog.run is kind enough to center the
- >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
- >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
- >>depending on whether it's docked or undocked. Thanks.
- >
- >Hi, David...
- > In probing here, it appears that you can adjust the rectangle in the
- >DLOG resource, and have an effect on where the dialog will be displayed.
- >If I put the dialog "fairly far to the right and down", dialog.runModeless
- >places it a little up and left from where dialog.run does. If I build the
- >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
- >places it.
- >
- Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
- have one custom dialog file which places it off-center on one of the
- screens. I can have two custom dialog files, and use the kludge of
- switching between them depending on the existance of a disk I know to be
- present only in the dock. (I've never figured out a gestalt selector for
- the presence of a dock, but I haven't looked at the latest version of the
- list.) Or I could execute this as part of the pre-display case in the
- callback routine:
-
- KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
-
- which is visually dippy since the dialog is displayed in the wrong place
- for a split second. I guess that any of them are good enough for my own
- use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
- still, it would be nice to have the same background timing mechanism for
- dialog.run that exists for dialog.runModeless. Thanks.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:20:20 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Sending raw events to FaceSpan
-
- >Mark Asked:
- >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>>the kind sent from Filemaker ie. an event class and an event id)?
- >>>
- >>>I can send event from Filemaker to an applet created with the script editor
- >>>but not to an applet created with FaceSpan.
- >>>
- >>>Any help our suggestions would be most appreciated.
- >>>Thanks in advance.
- >>
- >John responded:
- >>well, you have the seeds to a work-around!
- >>
- >>Just make an applet in AppleScript to receive these events, and then send
- >>them to the FaceSpan app via "tell" statements... that should work.
- >>
- >>- john
- >>
- >>-----------------------------------------
- >>js12@gte.com GTE Laboratories
- >>John Schettino Waltham, MA
- >
- >Lets call a club a club - its not a work-around it a kludge!! Funny enough
- >I hadn't thought of doing that. Not a bad suggestion but not an ideal
- >solution for me. I'm designing applets that are distrubuted to multiple
- >users in my institution. If I told them 'well here filemaker for the
- >database, and here's an facespan applet to do functions that filemaker
- >can't do, oh and ya, here's another application...'.
- >I REALLY would like to avoid a scenario like that...
- >
-
- It also won't help, unless the kludge applet also translates the event into
- one which you can receive in a FaceSpan applet. But...FileMaker could send
- that directly, without the kludge. Basically, a dead end.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:23:30 U
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE-FMP Creating a new recor
-
- Subject: Time:13:20
- OFFICE MEMO RE:FMP Creating a new record with Date:11/16/94
- If you want to fill out all the fields in the new record then you can set the
- data to layout 0 (layout 0 is a conceptual layout consisting of all the
- fields defined in the database, the fields are ordered according to their
- creation order). On layouts other than layout 0 the data will also be set to
- the fields according to their creation order however data will only be set
- into the fields that actually exist on that layout.
-
- Layout 0 has all fields in creation order.
- Layout nth Layout has the fields that exist on that layout in creation order.
-
- Stephen
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:31:59 -0500
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): FMP Timeout Problem!
-
- Much thanks to Mark Hadfield for finally clearing up this common FileMaker
- script problem. Now, could someone please clarify the meaning of the
- following construct he used?
-
- > on =ABevent FMPXDONE=BB
- > set okContinue to true
- > end =ABevent FMPXDONE=BB
-
- I presume it's some kind of AppleEvent handler, but I don't recognize the
- syntax, nor could I find anything like it in the AppleScript Language Guide.
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:18:21 -0500
- From: Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
- Subject: Re: unsub
-
- Unsubscribe Jason Komaromi
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:35:19 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: AAAAARRRGGGHHHH
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:49:03 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >Mark:
- >
- >Thanks for your enlightening explanation regarding FileMaker timing out on
- >script calls.
- >
- >IUve begun implementing the industrial-strength fix you described, but IUve
- >run into one problem. The apple event handler you specified doesnUt compile=
- :
- >
- > on =3DABevent FMPXDONE=3DBB
- > set okContinue to true
- > end =3DABevent FMPXDONE=3DBB
- >
- >I get a dialog box that says: RExpected function name, command name or
- >function
- >name but found R=3DS.
- >
- >Also, an observation (please tell me if IUm wrong):
- >
- >Your technique of having the FileMaker Pro script send an FMPX/DONE event
- >assumes that the called script does not call subscripts that are also calle=
- d
- >by the AppleScript.
- >
- >For example, letUs say I want to call FileMaker script x, and have x confir=
- m
- >its
- >completion by sending the DONE event. Given this scenario, I canUt call
- >script
- >x
- >from within script y and then call script y from my AppleScript, because th=
- e
- >DONE event would be sent as soon as script x is completed, not after y is
- >completed.
- >
- It doesn't compile because you haven't use the chevron characers.
- To create the chevron characters =AB=BB, use option-\ and shift-option-\.
-
- As far as your other question I'm not sure what you mean but it sounds like
- it should be able to be done. Performing subscripts should not change the
- equation.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:10:10 -0700
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: Key presses and timing query
-
- >Sorry to ask such a basic question but can anyone tell me how to get back
- >which key a user has pressed from within Applescript?
-
- Try the Jon's Commands OSAX
- (available via FTP at gaea.kgs.ukans.edu:applescript/)
- It has a command called "keys pressed" that works like a charm.
-
- >While I'm at it, does anyone know of a more accurate way of timing an
- >operation in Applescript other than using the time to the nearest second?
- >Tenths of a second would be good enough.
-
- Again, Jon's Commands to the rescue -- it has a command called "the ticks"
- which tells you the current value of the system's tick count, which I
- believe is measured in 60ths of a second.
-
- Boy those commands are great!
-
- Matthew
-
- ----------------------------------------------------------------------------
- --------
- "Believe nothing, no matter where you read it, or who said it -- even if I
- have said
- it -- unless it agrees with your own reason and your common sense.
- --The Buddha
- ----------------------------------------------------------------------------
- --------
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:52:18 +0000
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: backgrounding an applescript application
-
- Get ScriptHider from the gaea ftp site.
-
-
- >I want to know how to make an applescript saved as a stay open application
- >stay in the background (as in, not appearing in the application menu) at
- >all times.
- >
- >Here's what I'm trying to do: I have a little script that, if it's two
- >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- >database, and then quits it. I'm doing this so that the Today function gets
- >recalculated every day and at a time when no one is using it so they don't
- >have to sit through the calculation.
- >Clearly, this script needs to be open at all times, and I can't trust the
- >users of the system not to quit it if they see it in the application menu.
- >Hence my question.
- >
- >I tried a horrendous hack which, not surprisingly, didn't work: I opened
- >the size resource with ResEdit and checked the "Always Background" bit.
- >When launched, the script did in fact go into the background, but it also
- >crashed my computer when I checked the application menu.
- >
- >If anyone had other ideas about how to do this, that would be appreciated
- >too. I tried to use Cron to do this, but couldn't for the life of me get it
- >to open a file. I could beep with it, flash dialogs, open a _program_,
- >etcetera, but I absolutely couldn't get it to open a file.
- >
- >Any help would be appreciated. Thanks.
- >
- >Aaron Brockett
- >abrocke1@cc.swarthmore.edu
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999 )
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 15:55:24 -0800
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Listserv scripts on the Mac (Frontier)
-
- >>
- >>My only suggestion would be that you might use Frontier. I know that Dave
- >>Winer has implemented pretty much what you descibe with just Frontier and
- >>Eudara alone. No need for the scriptable finder, osax, or anything else to
- >>get the job done.
- >>
- >>Doug
- >
- >where can i get this? does it work with the frontier runtime.
-
- I don't know if Dave is sharing his scripts at this point. Probably not,
- would be my guess. I'll ask him. But in any case, it really shouldn't be
- that hard to write. It's mostly a matter of text parsing and maintaining
- tables (lists). I would expect any such system to work fine with Runtime.
-
- Doug
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 20:31:05 +0000
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: I got this?
-
- Any one ever gotten this from the listserv here?:
-
- Sorry. Your message could not be delivered:
- Message contained no valid addresses.
-
- The subject line was: NDN: Newbie on Timer function
- and I never sent a message like that. Any ideas?
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 20:03:17 -0600
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Script Editor WorldScript bug fix?
-
- I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
- 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
- things I noticed after installed System 7.5. I'm now using B&W formatting for
- my scripts, which is less informative but works better.
-
- I've noticed something else that's strange, though it might fall under the
- category of a system problem. My shared libraries, ObjectSupportLib and
- AppleScriptLib have had generic icons ever since I installed System 7.5. Has
- anyone else noticed this and isn't it odd?
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 20:22:45 -0600
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: backgrounding an applescript application
-
- I'm sure others here will offer better solutions, but I'm running certain
- applets overnight using QuicKeys' timer function.
-
- For instance, I have a Check Mail applet that I run at the same time every
- morning. Rather than having it launch as a startup script, I opted to handle
- it this way because I have three other startup scripts and wanted to give
- this one full attention when it was running since they all seem to get
- launced concurrently.
-
- Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
- just too unstable at that time for my uses. I should probably look at one of
- the newer version because I really liked the concept.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question....
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
-
- ------------------------------
-
- End of MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)--
- =========================================================================
- Date: Thu, 17 Nov 1994 04:02:57 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: system@MAIL1.WYETH.COM
- Subject: Service Message
-
- --Boundary (ID nRextD6cGC9c36vBjbSvsg)
- Content-type: TEXT/REPORT
-
- Report on your message to: /U=Unknown/@mr.wyeth.com
- Reason: Unable to transfer; message formatting problem (1)
- Diagnostic: Maximum time expired (5)
- Supplementary information: Message was undeliverable to Microsoft mail. Error
- confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
-
- --Boundary (ID nRextD6cGC9c36vBjbSvsg)
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
-
- From: Systems, Macintosh S
- Date: Wed, Nov 16, 1994 11:00 PM
- Subject: MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
- To: Sabatucci, Joe
- File(s): Attach.Txt1
-
- Regarding Message ID : 61400071114991/585237@MAIL1
- From: NAME: Macintosh Scripting Systems
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
- Author: NAME: Automatic digest processor
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
- To: NAME: Recipients of MACSCRPT digests
- <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
-
- Date : 16-NOV-1994 23:00:23.00
- There are 39 messages totalling 1233 lines in this issue.
-
- Topics of the day:
-
- 1. "Get Terminology" event question
- 2. Sending raw events to FaceSpan (3)
- 3. Listserv scripts on the Mac
- 4. MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994 (2)
- 5. Re(2): Listserv scripts on the Mac
- 6. Newbie on Timer function
- 7. Re (2)
- 8. Changing Folder and File Visibility (2)
- 9. Key presses and timing query (3)
- 10. unsub (3)
- 11. FMP Timeout Problem! (3)
- 12. Sending raw events to Fa
- 13. Script Editor WorldScript bug fix? (2)
- 14. RE- FMP & Picture fields
- 15. HyperCard + Excel Questions
- 16. backgrounding an applescript application (3)
- 17. Stack overflow error
- 18. NDN: Newbie on Timer function
- 19. AOCE listservs (was Re: Listserv scripts on the Mac)
- 20. Frontier: dialog.runModeless question
- 21. RE-FMP Creating a new recor
- 22. Re(2): FMP Timeout Problem!
- 23. AAAAARRRGGGHHHH
- 24. Listserv scripts on the Mac (Frontier)
- 25. I got this?
-
- ----------------------------------------------------------------------
-
- Date: Wed, 16 Nov 1994 00:11:22 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: "Get Terminology" event question
-
- Brian Hall <mspace@NETCOM.COM> wrote:
- >
- >It used to be that an app had to support the "Get Terminology" event if
- >people were to be able to write:
- >tell application "foo" of machine "bar"
- > whatever
- >end tell
- >
- >So that SE could syntax check.
-
- I don't recall this ever being the case. Most likely you didn't have
- AppleScript installed on the remote machine. I'm pretty sure that you need
- to have AppleScript there so that it has the system GetTerminology handler
- installed. I suppose implementing one would work, but it's not the
- simplest solution. ;)
-
- >System 7.5 to the rescue:
- >It seems that the version of AppleScript that ships with 7.5 must install a
- >system wide handler for this event, so even if the target app *does not*
- >support the GT event, the extension will suck the resource out the app and
- >pass it back for you. This is mostly a good thing. The only apps that
- >should mind are those that have dynamic 'aete' - and are there any yet?
-
- AppleScript has always implemented this scheme. System 7.5 had no changes
- to AppleScript (well, OK, they recompiled it with a VERY minor Script
- Editor WorldScript bug fix).
-
- Also, as we were discussing a few days ago, Quark is the only app I know
- which supports dynamic terminologies, but I have yet to see an extension
- which has a dictionary.
-
- >A side effect of this may be that if the app *is running* on that remote
- >machine, perhaps it would load the resource in that heap? (A guess)
-
- I believe that you MUST have the remote app running in order to script it.
- Someone needs to be the target of the GetTerminology event. As I stated
- before, the resource gets loaded, detatched and returned (copied) in the
- GetTerminology reply. The original should be purgeable, but I don't think
- it gets marked so by AppleScript (this is a good thing for the
- investigative among you to check).
-
- Jon
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:11:25 -0800
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Sending raw events to FaceSpan
-
- Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
- >
- >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
-
- I can explain all of this. FaceSpan registers its events in suites. So,
- it registers handlers for 'aevt****', 'core****' and 'misc****', among
- others. Thus, the custom event you were trying to accept wouldn't have a
- handler installed for it. If you made it fall into one of these suites, it
- would have a handler installed, although there's no guarentee that an app
- will do anything sensible with the event once the handler got it.
-
- I would have expected that applets would do the same thing that Hypercard
- does, which is to install a '********' handler and just deal with whatever
- comes in. They don't though. They register a quit event and install a
- phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
- equals 'phac' and is not named after Phac Le Tuan). This phac handler gets
- every event BEFORE it gets sent to its proper handler. I don't know why
- its done this way, but I'll see if I can find out. It's probably just a
- dispatch optimization.
-
- As a final note, the reason why 'syso' events go weird is that the "choose
- folder" osax registers as the 'syso****' handler. This means that any
- events with class 'syso' and are not handled by an explicit handler, get
- sent there and you get the Choose Folder dialog. I think this might
- qualify as a bug. Someone should try finding the "choose folder" event in
- the aete and change the osax name to match that and see if it still works.
- I wonder if there are any other 'syso' events that it handles. Time to
- snoop the code, I guess. ;)
-
- Jon
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:15:34 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Listserv scripts on the Mac
-
- >Hello,
- >
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- This is the sort of largish job I would tend to do with Frontier, rather
- than with AppleScript. [Eudora would be fine as the mailing application.]
- Several of Frontier's capabilities make sense here (your list might be an
- outline in the Frontier database, rather than a separate text file. The
- outline editor in Frontier is nicely scriptable.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 00:37:09 -0800
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >Subject: Accessing the OSA from C
- >
- >OK, I see the book on how to do the OSACompile and all that.
- >
- >How do I check if these traps are available? There doesn't seem to be a
- >Gestalt selector for same, nor can I find a way of checking directly.
-
- I wondered the same when I first tried to do this... when you try to
- open the component, it will return NULL if there is no component. I don't
- know if this works on System 6, but on System 7, it will return NULL if
- AppleScript is not installed. I don't know if there is a Gestalt call
- for the Component Manager...
-
- ex.
- gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
- kAppleScriptSubtype);
-
- To check if AppleScript loaded (later in program) ...
-
- if (gScriptingComponent != NULL)
- {
- ... do OSAExecute, etc.
- }
-
- BTW, a good article/sample to use if you are trying to get started with OSA
- calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
- for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
-
- Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
- that will tell you if AppleEvents are present, but not if AppleScript is...
-
-
- -- Alex
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 04:34:15 -0500
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): Listserv scripts on the Mac
-
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
- I, too, would like to offer a Macintosh-based list server. In fact, I would
- very much like to get involved in creating it.
-
- I wonder what would happen if we were to try this instead via PowerTalk
- gateways, which will offer the potential for a multi-system listserv
- (probably the world's first!) The concept of messages coming in and going out
- via any combination of carriers is exciting, especially when you consider
- that PowerTalk automatically delivers messages in the best possible format,
- not the least common format.
-
- To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- Internet one, in particular, is a dream. I heartily recommend Mail*Link
- PT/INET from StarNine. Its handling of enclosures is totally transparent,
- plus you get to use all the fancy address catalogs.
-
- So the plan would be: incoming->PowerShare->AOCE
- daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- daemon area, but I know something better is possible. Just look at the sheer
- size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:44:50 +0100
- From: Chris Remie <chris@MEDIAMATIC.NL>
- Subject: Newbie on Timer function
-
- Hi,
- I'm new here so have mercy.
- Is there a way to make a script that performs a task at a certain time every
- day?
- Thanks,
- Chris Remie
-
- Mediamatic Magazine
- Mediamatic Interactive Publishing
-
- postbus 17490
- 1001 JL Amsterdam
- the Netherlands
-
- vox: +31 - 20 626 6262
- fax: +31 - 20 626 3793
- www: http://mmol.mediamatic.nl
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:36:40 -0500
- From: Gary Morrison <MORRISG@ORG.BITNET>
- Subject: Re
-
- unsubcribe
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:43:23 -0500
- From: "Michael D. Doub" <doub@DG-RTP.DG.COM>
- Subject: Changing Folder and File Visibility
-
- Is anyone aware of a osaxen that would allow you to control the visability
- of a folder or a file from AppleScript? A scriptable version of the
- BlindFold application would do the trick too. Does it exist?
-
- Thanks
- Mike
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 14:23:23 +0000
- From: David Davies <d.a.davies@BHAM.AC.UK>
- Subject: Key presses and timing query
-
- Sorry to ask such a basic question but can anyone tell me how to get back
- which key a user has pressed from within Applescript?
-
- While I'm at it, does anyone know of a more accurate way of timing an
- operation in Applescript other than using the time to the nearest second?
- Tenths of a second would be good enough.
-
- Thanks,
-
- David Davies
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 08:55:45 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re
-
- >unsubcribe
-
- Send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:26:21 AST4ADT
- From: LEBLANR@UMONCTON.CA
- Subject: unsub
-
- unsubscribe Bob LeBlanc
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:06:23 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to FaceSpan
-
- Mark Asked:
- >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>the kind sent from Filemaker ie. an event class and an event id)?
- >>
- >>I can send event from Filemaker to an applet created with the script editor
- >>but not to an applet created with FaceSpan.
- >>
- >>Any help our suggestions would be most appreciated.
- >>Thanks in advance.
- >
- John responded:
- >well, you have the seeds to a work-around!
- >
- >Just make an applet in AppleScript to receive these events, and then send
- >them to the FaceSpan app via "tell" statements... that should work.
- >
- >- john
- >
- >-----------------------------------------
- >js12@gte.com GTE Laboratories
- >John Schettino Waltham, MA
-
- Lets call a club a club - its not a work-around it a kludge!! Funny enough
- I hadn't thought of doing that. Not a bad suggestion but not an ideal
- solution for me. I'm designing applets that are distrubuted to multiple
- users in my institution. If I told them 'well here filemaker for the
- database, and here's an facespan applet to do functions that filemaker
- can't do, oh and ya, here's another application...'.
- I REALLY would like to avoid a scenario like that...
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:08:49 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: unsub
-
- >unsubscribe Bob LeBlanc
-
- Please send your request to listserv@dartmouth.edu in the form
-
- signoff macscrpt
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:30:44 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >IUm working on a fairly large & involved AppleScript that manipulates
- >data in several FileMaker Pro files. It all seems to work really well, exce=
- pt
- >for one niggling--and highly frustrating--problem:
- >
- >When I try to obtain the number of records in the current found set,
- >the event never resolves; instead, after a minute or so, I get an RAppleEve=
- nt
- >timed outS dialog box.
- >
- >The problem line is:
- >
- > set rCount to (Count of Layout 1 of Window 1 Class Record)--times
- >out
- >
- >IUve tried it with long time outs and it just doesnUt do any good.
- >
- >
- >Please help!!!
- >
- >
- >FYI: I had the same problem when I ran a FileMaker Script from my
- >AppleScript that did a Find All. When I replaced that call with a simple
- >AppleScript Tshow every record,U it no longer timed out.
-
- The problem is not your 'set count to' command its the command that comes
- before it. Let me guess- the line before it is triggering a Filemaker
- script. This is the crux of the problem: when you trigger a filemaker
- script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
- TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE. Applescript assumes that FM
- is done and issues the next event (your count records command). FM misses
- the command and thus never responds back to it. Applescript waits
- patiently to hear back and eventually times out. There are a couple of
- ways around it, one a simple kludge, the other more industrial strength.
-
- Simple fix: After every 'do script filemaker script' do a repeat loop long
- enough to ensure the FM script will be finished executing.
-
- The simple fix is just that simple - but can cause problems if the script
- is running on slower machines or if the type of FM script that is called
- can have varying length of runs (ie. most take 3 seconds but one big one
- takes 50 seconds - you would have to set the repeat loop to last 50 seconds
- even though most are only 3 seconds...).
-
- Industrial Strength fix: In every filemaker script that is called from
- applescript add a 'send apple event...' command and the end of the script.
- Set the event class to FMPX. Set the event ID to DONE. Then add the
- following code to your applescript:
-
- property okContinue : false
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
-
- on foo()
- tell application "Filemaker Pro"
- Do Script FileMaker Script "whatever script you want"
- if (my canIcontinue()) is false then display dialog "Did not hear from FM
- or FM script took too long to run"
- count class record
- .
- .
- .
- end tell
- end foo
-
-
- on canIcontinue()
- global okContinue
- local startTime
- set startTime to current date
- repeat until ((current date) - (startTime)) > 200
- -- how many seconds to you want to wait to hear back from Filemaker?
- if okContinue is true then
- set okContinue to false
- set startTime to current date -- a small delay to
- ensure FM is ready
- repeat until ((current date) - (startTime)) > 1
- end repeat
- return true
- end if
- end repeat
- set okContinue to false
- return false
- end canIcontinue
-
- Its much more complex but is dynamic: if the FM script only takes 4 seconds
- to run applescript will be issuing the next command 5 or 6 seconds after
- the FM script was called. If the FM script takes 130 seconds to run
- applescript will be issuing the next command 131 or 132 seconds later.
-
-
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 11:41:12 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Sending raw events to Fa
-
- >>I wrote:
- >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >> the kind sent from Filemaker ie. an event class and an event id)?
- >
- >> I can send event from Filemaker to an applet created with the script editor
- >> but not to an applet created with FaceSpan.
- >
- >I tried this out, and ran into the same difficulty you had. Events that I
- >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
- >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
- >them on to the script component to let it try to handle them.
- >
- >This struck me as odd, because other events (calls to osaxen and other
- >system-
- >handled events) had to make it. So I tried a 'custom' event with an event
- >class of 'aevt'. Ta da! It worked.
- >
- >That's the secret: use an event class of 'aevt'. You could also try class
- >'syso', but I noticed some wierd behaviour when I tried this out, so I would
- >not advise it.
- >
- >Hope that helps (and thanks for asking cool questions),
- > Andrew
- >----------------------------------------------------------------------
- >Andrew T. Johnston |
- >Apple Canada, Inc. | Who else would claim these opinions as his own?
- >atjohnst@apple.com |
-
-
-
- Whoopee!! It worked!! You are a god! No more faceless applets for my users!!!
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:03:23 -0500
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Changing Folder and File Visibility
-
- I have C code that does this; if one doesn't exist I could probably write an
- osax if I knew how. :D
-
- _Deirdre
-
- Michael Doub asks:
- > Is anyone aware of a osaxen that would allow you to
- > control the visability of a folder or a file from
- > AppleScript? A scriptable version of the BlindFold
- > application would do the trick too. Does it exist?
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 09:38:23 -0800
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Script Editor WorldScript bug fix?
-
- >AppleScript has always implemented this scheme. System 7.5 had no changes
- >to AppleScript (well, OK, they recompiled it with a VERY minor Script
- >Editor WorldScript bug fix).
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:11:34 U
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE- FMP & Picture fields
-
- Reply to: RE: FMP & Picture fields
- tell application "FileMaker Pro"
- copy cellValue of cell "Picture" to thePicture
- end tell
-
- works fine i.e. the picture data is tored in the variable thePicture. You
- can verify this by setting this data back into the picture field in a new
- record within your database. What exactly do you want to do with the data
- in thePicture after you have copied it.
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:24:16 -0800
- From: "Alex L. Bangs" <bangs@NETCOM.COM>
- Subject: HyperCard + Excel Questions
-
- A few questions:
-
- (1) I've been experimenting with doing AppleScript in HyperCard. The
- on-line documentation is amazingly vague about transfering data back and
- forth, and provides no examples. By looking at the mail merge example
- stack, I saw that they are getting HyperCard data via using HyperTalk
- functions called from AppleScript. I also know I can access fields
- directly.
- * Question: is there a way to get direct access to global HyperTalk variables?
- I can access them when running a script from the script editor and using
- an evaluate expression, but when I try to do this inside HyperCard as
- an AppleScript script, it doesn't work.
-
- * Question: is it possible to using HyperTalk "chunking" expressions from
- AppleScript? I think the answer is know but would appreciate enlightenment.
- I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
-
- (2) What my script does is take a field or variable and turn it into a 2D
- list which can then be dumped into Excel via a named range of cells.
- Here's the one line I tell Excel:
- set value of Range myRange to myArray
- The problem is it executes *really* slowly, like 1 cell per second on
- a PB 170. Any idea what's going on here.
-
- (3) If you'd like to take pot-shots at my script, here it is:
-
- -- this script accesses all HyperCard data via a set of
- -- background HyperTalk functions -- getData*()
-
- on mouseUp
- set saveDelim to AppleScript's text item delimiters
- set AppleScript's text item delimiters to {","}
- set nRows to getDataNRows()
- set nCols to getDataNCols()
- set myArray to {}
- repeat with r from 1 to nRows
- set rowItems to text items of getDataNthRow(r)
- set rowList to {}
- repeat with c from 1 to nCols
- set rowList to rowList & {item c of rowItems as number}
- end repeat
- set myArray to myArray & {rowList}
- end repeat
- set AppleScript's text item delimiters to saveDelim
- set myRange to getDataRange()
-
- tell application "Excel"
- activate
- -- the following line runs painfully slowly!
- set value of Range myRange to myArray
- end tell
- end mouseUp
-
- Thanks!
- Alex
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:35:10 -0500
- From: Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
- Subject: backgrounding an applescript application
-
- I want to know how to make an applescript saved as a stay open application
- stay in the background (as in, not appearing in the application menu) at
- all times.
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question.
-
- I tried a horrendous hack which, not surprisingly, didn't work: I opened
- the size resource with ResEdit and checked the "Always Background" bit.
- When launched, the script did in fact go into the background, but it also
- crashed my computer when I checked the application menu.
-
- If anyone had other ideas about how to do this, that would be appreciated
- too. I tried to use Cron to do this, but couldn't for the life of me get it
- to open a file. I could beep with it, flash dialogs, open a _program_,
- etcetera, but I absolutely couldn't get it to open a file.
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 10:53:43 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
-
- >>From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- >>Subject: Accessing the OSA from C
- >>
- >>OK, I see the book on how to do the OSACompile and all that.
- >>
- >>How do I check if these traps are available? There doesn't seem to be a
- >>Gestalt selector for same, nor can I find a way of checking directly.
- >
- >I wondered the same when I first tried to do this... when you try to
- >open the component, it will return NULL if there is no component. I don't
- >know if this works on System 6, but on System 7, it will return NULL if
- >AppleScript is not installed. I don't know if there is a Gestalt call
- >for the Component Manager...
- >
-
- The gestalt selector which lets you know whether the Component Manager is
- present is gestaltComponentMgr ('cpnt'), which returns the version number
- of the Component Manager (4 on my 8100 running System 7.5, your mileage may
- vary).
-
- If Component Manager is not available, the selector is not defined, and
- Gestalt will return an error.
-
- The Component Manager is available under System 6.x and System 7.0.x if and
- only if QuickTime is installed*...it became part of the base System in
- System 7.1
-
- --John
-
- * Or a hypothetical something else which installs Component Manager in
- those old Systems. Sys 7.0 was so long ago--did AppleScript install
- Component Manager, or refuse to run without it, or ...?
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:23:41 CST
- From: Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
- Subject: Stack overflow error
-
- A fairly large script that I've been working on is consistently
- giving me "Stack Overflow" errors.
-
- What can I do to get this to work inside AppleScript? Note: the
- error is occuring during a tell statement to the Finder.
-
- Besides that, is there any way that my script can receive
- notification when a volume is mounted without doing an idle loop to
- watch for it?
-
- I'm using System 7.5, with the AppleScript Scripter's kit installed.
-
- Thanks,
- Josh Buysse
-
- CAFE Mac Client designer
- University of Minnesota AIS
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 14:32:28 -0500
- From: Jonathan Donald <jeddak@PANIX.COM>
- Subject: Re: FMP Timeout Problem!
-
-
- Thanks for your enlightening explanation regarding FileMaker timing out on
- script calls.
-
- IUve begun implementing the industrial-strength fix you described, but IUve
- run into one problem. The apple event handler you specified doesnUt compile:
-
- on =ABevent FMPXDONE=BB
- set okContinue to true
- end =ABevent FMPXDONE=BB
-
- I get a dialog box that says: RExpected function name, command name or
- function
- name but found R=S.
-
- Also, an observation (please tell me if IUm wrong):
-
- Your technique of having the FileMaker Pro script send an FMPX/DONE event
- assumes that the called script does not call subscripts that are also called
- by the AppleScript.
-
- For example, letUs say I want to call FileMaker script x, and have x confirm
- its
- completion by sending the DONE event. Given this scenario, I canUt call
- script
- x
- from within script y and then call script y from my AppleScript, because the
- DONE event would be sent as soon as script x is completed, not after y is
- completed.
-
-
-
- -jd
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:58:11 U
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Key presses and timing query
-
- > Sorry to ask such a basic question but can
- > anyone tell me how to get back which key a user
- > has pressed from within Applescript?
-
- Jon's Commands 1.2 has the following event:
-
- keys pressed: Get the keys that are currently pressed.
- keys pressed
- Result: string -- A list of key names.
-
- Hope this helps.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:09:04 GMT
- From: Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
- Subject: NDN: Newbie on Timer function
-
- Sorry. Your message could not be delivered:
-
- Message contained no valid addresses.
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 09:03:00 +1300
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: AOCE listservs (was Re: Listserv scripts on the Mac)
-
- David Jokinen <ground@INTERLINK.NET> writes:
-
- >I wonder what would happen if we were to try this instead via PowerTalk
- >gateways, which will offer the potential for a multi-system listserv
- >(probably the world's first!) The concept of messages coming in and going out
- >via any combination of carriers is exciting, especially when you consider
- >that PowerTalk automatically delivers messages in the best possible format,
- >not the least common format.
- >
- >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
- >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
- >Internet one, in particular, is a dream. I heartily recommend Mail*Link
- >PT/INET from StarNine. Its handling of enclosures is totally transparent,
- >plus you get to use all the fancy address catalogs.
- >
- >So the plan would be: incoming->PowerShare->AOCE
- >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
- >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
- >daemon area, but I know something better is possible. Just look at the sheer
- >size of "Inside Macintosh: AOCE Application Interfaces." :)
-
- Before you get too enthused, bear in mind that the current public AOCE APIs
- aren't really up to the task. PowerRules was done using APIs which were not
- made generally public, because they were not guaranteed to be stable enough
- for public use.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 12:27:45 -0800
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Frontier: dialog.runModeless question
-
- >>The problem is that dialog.run is kind enough to center the
- >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
- >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
- >>depending on whether it's docked or undocked. Thanks.
- >
- >Hi, David...
- > In probing here, it appears that you can adjust the rectangle in the
- >DLOG resource, and have an effect on where the dialog will be displayed.
- >If I put the dialog "fairly far to the right and down", dialog.runModeless
- >places it a little up and left from where dialog.run does. If I build the
- >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
- >places it.
- >
- Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
- have one custom dialog file which places it off-center on one of the
- screens. I can have two custom dialog files, and use the kludge of
- switching between them depending on the existance of a disk I know to be
- present only in the dock. (I've never figured out a gestalt selector for
- the presence of a dock, but I haven't looked at the latest version of the
- list.) Or I could execute this as part of the pre-display case in the
- callback routine:
-
- KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
-
- which is visually dippy since the dialog is displayed in the wrong place
- for a split second. I guess that any of them are good enough for my own
- use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
- still, it would be nice to have the same background timing mechanism for
- dialog.run that exists for dialog.runModeless. Thanks.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:20:20 -0800
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Sending raw events to FaceSpan
-
- >Mark Asked:
- >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
- >>>the kind sent from Filemaker ie. an event class and an event id)?
- >>>
- >>>I can send event from Filemaker to an applet created with the script editor
- >>>but not to an applet created with FaceSpan.
- >>>
- >>>Any help our suggestions would be most appreciated.
- >>>Thanks in advance.
- >>
- >John responded:
- >>well, you have the seeds to a work-around!
- >>
- >>Just make an applet in AppleScript to receive these events, and then send
- >>them to the FaceSpan app via "tell" statements... that should work.
- >>
- >>- john
- >>
- >>-----------------------------------------
- >>js12@gte.com GTE Laboratories
- >>John Schettino Waltham, MA
- >
- >Lets call a club a club - its not a work-around it a kludge!! Funny enough
- >I hadn't thought of doing that. Not a bad suggestion but not an ideal
- >solution for me. I'm designing applets that are distrubuted to multiple
- >users in my institution. If I told them 'well here filemaker for the
- >database, and here's an facespan applet to do functions that filemaker
- >can't do, oh and ya, here's another application...'.
- >I REALLY would like to avoid a scenario like that...
- >
-
- It also won't help, unless the kludge applet also translates the event into
- one which you can receive in a FaceSpan applet. But...FileMaker could send
- that directly, without the kludge. Basically, a dead end.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 13:23:30 U
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: RE-FMP Creating a new recor
-
- Subject: Time:13:20
- OFFICE MEMO RE:FMP Creating a new record with Date:11/16/94
- If you want to fill out all the fields in the new record then you can set the
- data to layout 0 (layout 0 is a conceptual layout consisting of all the
- fields defined in the database, the fields are ordered according to their
- creation order). On layouts other than layout 0 the data will also be set to
- the fields according to their creation order however data will only be set
- into the fields that actually exist on that layout.
-
- Layout 0 has all fields in creation order.
- Layout nth Layout has the fields that exist on that layout in creation order.
-
- Stephen
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:31:59 -0500
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): FMP Timeout Problem!
-
- Much thanks to Mark Hadfield for finally clearing up this common FileMaker
- script problem. Now, could someone please clarify the meaning of the
- following construct he used?
-
- > on =ABevent FMPXDONE=BB
- > set okContinue to true
- > end =ABevent FMPXDONE=BB
-
- I presume it's some kind of AppleEvent handler, but I don't recognize the
- syntax, nor could I find anything like it in the AppleScript Language Guide.
-
- David Jokinen
- Ground Zero Software
- ground@interlink.net
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:18:21 -0500
- From: Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
- Subject: Re: unsub
-
- Unsubscribe Jason Komaromi
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:35:19 -0600
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: AAAAARRRGGGHHHH
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:49:03 -0500
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: FMP Timeout Problem!
-
- >Mark:
- >
- >Thanks for your enlightening explanation regarding FileMaker timing out on
- >script calls.
- >
- >IUve begun implementing the industrial-strength fix you described, but IUve
- >run into one problem. The apple event handler you specified doesnUt compile=
- :
- >
- > on =3DABevent FMPXDONE=3DBB
- > set okContinue to true
- > end =3DABevent FMPXDONE=3DBB
- >
- >I get a dialog box that says: RExpected function name, command name or
- >function
- >name but found R=3DS.
- >
- >Also, an observation (please tell me if IUm wrong):
- >
- >Your technique of having the FileMaker Pro script send an FMPX/DONE event
- >assumes that the called script does not call subscripts that are also calle=
- d
- >by the AppleScript.
- >
- >For example, letUs say I want to call FileMaker script x, and have x confir=
- m
- >its
- >completion by sending the DONE event. Given this scenario, I canUt call
- >script
- >x
- >from within script y and then call script y from my AppleScript, because th=
- e
- >DONE event would be sent as soon as script x is completed, not after y is
- >completed.
- >
- It doesn't compile because you haven't use the chevron characers.
- To create the chevron characters =AB=BB, use option-\ and shift-option-\.
-
- As far as your other question I'm not sure what you mean but it sounds like
- it should be able to be done. Performing subscripts should not change the
- equation.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 16:10:10 -0700
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: Key presses and timing query
-
- >Sorry to ask such a basic question but can anyone tell me how to get back
- >which key a user has pressed from within Applescript?
-
- Try the Jon's Commands OSAX
- (available via FTP at gaea.kgs.ukans.edu:applescript/)
- It has a command called "keys pressed" that works like a charm.
-
- >While I'm at it, does anyone know of a more accurate way of timing an
- >operation in Applescript other than using the time to the nearest second?
- >Tenths of a second would be good enough.
-
- Again, Jon's Commands to the rescue -- it has a command called "the ticks"
- which tells you the current value of the system's tick count, which I
- believe is measured in 60ths of a second.
-
- Boy those commands are great!
-
- Matthew
-
- ----------------------------------------------------------------------------
- --------
- "Believe nothing, no matter where you read it, or who said it -- even if I
- have said
- it -- unless it agrees with your own reason and your common sense.
- --The Buddha
- ----------------------------------------------------------------------------
- --------
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 17:52:18 +0000
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: backgrounding an applescript application
-
- Get ScriptHider from the gaea ftp site.
-
-
- >I want to know how to make an applescript saved as a stay open application
- >stay in the background (as in, not appearing in the application menu) at
- >all times.
- >
- >Here's what I'm trying to do: I have a little script that, if it's two
- >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- >database, and then quits it. I'm doing this so that the Today function gets
- >recalculated every day and at a time when no one is using it so they don't
- >have to sit through the calculation.
- >Clearly, this script needs to be open at all times, and I can't trust the
- >users of the system not to quit it if they see it in the application menu.
- >Hence my question.
- >
- >I tried a horrendous hack which, not surprisingly, didn't work: I opened
- >the size resource with ResEdit and checked the "Always Background" bit.
- >When launched, the script did in fact go into the background, but it also
- >crashed my computer when I checked the application menu.
- >
- >If anyone had other ideas about how to do this, that would be appreciated
- >too. I tried to use Cron to do this, but couldn't for the life of me get it
- >to open a file. I could beep with it, flash dialogs, open a _program_,
- >etcetera, but I absolutely couldn't get it to open a file.
- >
- >Any help would be appreciated. Thanks.
- >
- >Aaron Brockett
- >abrocke1@cc.swarthmore.edu
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/
- Elomense(MUD): josaiah.sewanee.edu 1999 )
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 15:55:24 -0800
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Listserv scripts on the Mac (Frontier)
-
- >>
- >>My only suggestion would be that you might use Frontier. I know that Dave
- >>Winer has implemented pretty much what you descibe with just Frontier and
- >>Eudara alone. No need for the scriptable finder, osax, or anything else to
- >>get the job done.
- >>
- >>Doug
- >
- >where can i get this? does it work with the frontier runtime.
-
- I don't know if Dave is sharing his scripts at this point. Probably not,
- would be my guess. I'll ask him. But in any case, it really shouldn't be
- that hard to write. It's mostly a matter of text parsing and maintaining
- tables (lists). I would expect any such system to work fine with Runtime.
-
- Doug
-
- ------------------------------
-
- Date: Wed, 16 Nov 1994 20:31:05 +0000
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: I got this?
-
- Any one ever gotten this from the listserv here?:
-
- Sorry. Your message could not be delivered:
- Message contained no valid addresses.
-
- The subject line was: NDN: Newbie on Timer function
- and I never sent a message like that. Any ideas?
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 20:03:17 -0600
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: Script Editor WorldScript bug fix?
-
- I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
- 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
- things I noticed after installed System 7.5. I'm now using B&W formatting for
- my scripts, which is less informative but works better.
-
- I've noticed something else that's strange, though it might fall under the
- category of a system problem. My shared libraries, ObjectSupportLib and
- AppleScriptLib have had generic icons ever since I installed System 7.5. Has
- anyone else noticed this and isn't it odd?
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Too minor for Power Macs -- do the earlier versions of the script editor
- have the "off by n" clicking problem under script editor 1.1 or 1.0?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
-
- ------------------------------
-
- Date: Thu, 17 Nov 1994 20:22:45 -0600
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: backgrounding an applescript application
-
- I'm sure others here will offer better solutions, but I'm running certain
- applets overnight using QuicKeys' timer function.
-
- For instance, I have a Check Mail applet that I run at the same time every
- morning. Rather than having it launch as a startup script, I opted to handle
- it this way because I have three other startup scripts and wanted to give
- this one full attention when it was running since they all seem to get
- launced concurrently.
-
- Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
- just too unstable at that time for my uses. I should probably look at one of
- the newer version because I really liked the concept.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
-
- Here's what I'm trying to do: I have a little script that, if it's two
- minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- database, and then quits it. I'm doing this so that the Today function gets
- recalculated every day and at a time when no one is using it so they don't
- have to sit through the calculation.
- Clearly, this script needs to be open at all times, and I can't trust the
- users of the system not to quit it if they see it in the application menu.
- Hence my question....
-
- Any help would be appreciated. Thanks.
-
- Aaron Brockett
- abrocke1@cc.swarthmore.edu
-
- ------------------------------
-
- End of MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
- ***************************************************
-
-
- ************************************************
- Text attachment found and added as enclosure
- ************************************************
-
-
- --Boundary (ID nRextD6cGC9c36vBjbSvsg)--
- =========================================================================
- Date: Thu, 17 Nov 1994 01:08:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: Kee's show and tell
-
- I've been up to my fingers in scripting and figured I should give a show
- and tell.
-
- I am automating a shareware collection system which has email that gets
- parsed, paper mail that gets entered and then parsed, email that gets
- generated and sent out, data flying everywhere, and various applications
- that need to interact.
-
- After getting frustrated with FaceSpan, I started using HyperCard as my
- User Interface builder. So most of my UI is in HyperTalk.
-
- I have a sequence of tasks that are partly AppleScript and partly HyperTalk
- so I built a set of buttons, each with a HyperTalk or AppleScript task. I
- pass data between these scripts in card fields. Yes I know it's crude but
- it gives me the ability to debug each button separately because the data
- stays in the card fields.
-
- The thing that ties it all together is a HyperTalk button that sends doit
- to each button in turn. The Hypertalk buttons have an "on doit" script and
- the AppleScript buttons have an "on doit()" script. Each button is in the
- same radio button group so as they get sent the "doit", their radio button
- gets hilited. It's satifying watching the buttons blink.
-
- I have melded HyperCard, MacAuthorize (credit card verifications), Eudora,
- into one happy process. Soon I'll be adding the Finder to delete files and
- DataScript to talk to a DAL server but that's a bit away. I'll also be
- adding in some networking to store text files on other machines. It's all
- coming together and I realize that without all this cool infrastructure,
- this would not have been possible last year.
-
- It's probably worth talking about roadkill I've encountered along the way.
-
- FaceSpan was the first. It was just too painful to get it to do what I
- wanted. Think of it as an abandoned card on the highway. It limps along if
- you baby it but after a while it's faster to hitchhike and catch another
- ride.
-
- Beyond's PowerRules for the Mac was just not a real AppleScript product.
- The version numbers were really a measure of the entropy in the code. Each
- release was able to execute fewer and fewer of the sample scripts. Think of
- it as true roadkill, a big fat cow that has caused a multi-vehicle pile-up
- (did you see the pictures of the Denver pileup?)
-
- StarNine's PowerTalk SMTP gateway for PowerTalk is a good product. It did
- what it was supposed to do but without a way to script the PowerTalk In
- Tray, it was of limited value for my project. Think of it as someone who
- was run over trying to prevent the cow from wandering onto the highway. A
- nice entity trying to do the right thing but in the wrong place at the
- wrong time.
-
- Informed is also a good product but I needed lots of text parsing, the kind
- of thing that HyperTalk seems to have been built for. It competed with
- HyperCard and lost. I also thought of using it for the data collection on
- the client side but the cost for licensing was too high and the size is
- huge. Peter Lewis wrote a small data collection app in pascal that works
- great. Think of it as a mobile home when what I needed was a VW dune buggy.
-
- DataScript is waiting in the wings. It provides an AppleScript front-end to
- relational databases such as SQL and DAL. I did some tests with it a while
- back and found the software and the company to be great. It's the on-ramp
- ahead that will get me onto the larger highway.
-
- Butler DAL from Everywhere is a relational database server that runs on the
- Mac. It is low cost but full featured and if I outgrow it as a DAL server,
- I can painlessly replace it with any other bigger faster DAL server (AS400,
- VAX, whatever). It's that suburb with all the infrastructure that is very
- close to a major metropolis.
-
- That's about it for the present, past, and future cast of my little
- project. There is still lots for me to do but I feel very confident that my
- current tools are up for the job.
-
- Kee Nethery
-
- _______________________________________________________________
- Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Thu, 17 Nov 1994 01:29:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: buyer's remorse
-
- Barry wrote:
-
- > which worked with everything I was trying to run on it. (And, yes,
- > another $25 bucks here or there _is_ a big deal to me. If you want to
- > try being my agent and making my surplus of talents a boon rather than
- > an impediment to my income you're welcome, otherwise keep your opinions
- > on the value of a dollar to yourselves.)
-
- Pardon me while I snicker. I work for a multi-million dollar corporation, and
- I still need to be aware of where I throw $25 at. Don't matter how much money
- you have, you still have to be careful with it, IMHO. Then again, I'm in
- accounting . . . :)
-
- > I doodled out late one night. The crashes I get are so random
- > and unreproducible, I don't know where to begin to stabilize
- > things. Anyone seen any compilations of actual real figured
- > out incompatabilities anywhere?
-
- Mind if I commiserate?
-
- I'm using an Apple Quadra 630 (another horror story. Don't get me started).
- The Q630 has ONE SIMM slot. That means I can install one RAM chip. It comes
- with 4M on-board, and my company rightly felt that for my needs, 12M would be
- good enough, so they got me an 8M SIMM. My current system, without some stuff
- I'd like to run, is about 3800K. When I installed Sys 7.5, it was using
- somewhere on the order of 5.something megs. That's without Quickdraw GX or
- any of the other bonuses ...
-
- Oh, and it was a bit slower. And cludgier. And more of a disk space hog.
- and my programs were behaving strangely.
-
- Uhh, thanks. No thanks. I got the AppleScript SDK and the Scriptable Finder
- (I spent the $25 about 3-4 months before the upgrade, when we needed the
- Finder *NOW* for a project I was working on), and system 7.1.2P, and I'm a
- happy (relatively) camper.
-
- We get Sys 7.5 for people at our company who justify why they should have it,
- but we mostly seem to use it for compatibility testing, rather than for
- functionality.
-
- -roy, who happens to work for the same company that now employs the project
- manager for the Scriptable Finder :)
-
- -roy
- =========================================================================
- Date: Thu, 17 Nov 1994 13:00:35 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Perlman Mike <perlman_mike@SMTPMAC.BAH.COM>
- Subject: Scripting MS Mail
-
- I need to control MS Mail via AppleScript.
-
- Can anyone give any suggestions on how to do this?
-
- Thanks
- Mike Perlman
- =========================================================================
- Date: Thu, 17 Nov 1994 07:19:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Diana Oswald <cassa003@MAROON.TC.UMN.EDU>
- Subject: Re: I got this?
-
- In message <2ecac0fe727f004@maroon.tc.umn.edu> Macintosh Scripting Systems
- writes:
- > Any one ever gotten this from the listserv here?:
- >
- > Sorry. Your message could not be delivered:
- > Message contained no valid addresses.
- >
- > The subject line was: NDN: Newbie on Timer function
- > and I never sent a message like that. Any ideas?
- >
-
- I got it, too and I never sent a message so it was a big mystery to me, too.
- Maybe somebody accidentally sent that to the list?
-
- ********************************************************************************
- Diana Oswald
- Financial Policy Development
- (612) 624-1611
- http://www.fpd.finop.umn.edu
-
- Today is the tommorrow that
- you worried about yesterday.
- =========================================================================
- Date: Thu, 17 Nov 1994 07:34:33 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re: Service Message
-
- >Report on your message to: /U=Unknown/@mr.wyeth.com
- >Reason: Unable to transfer; message formatting problem (1)
- >Diagnostic: Maximum time expired (5)
- >Supplementary information: Message was undeliverable to Microsoft mail. Error
- > confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- >Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
-
- ...Going on to send the digest back to the list.
-
- Am I the only one getting these? This is the second or third one I've
- received. Looks like someone putting their faith in Mr. Gates and Micro$oft
- solving all the problems in the world :-)
-
- Steve Alex (steve_alex@aidt.edu)
-
- _/_/_/ _/ _/_/_/_/ _/_/_/_/ Alabama Industrial
- _/ _/ _/ _/ _/ _/ Development Training
- _/_/_/_/_/ _/ _/ _/ _/ 75 TechnaCenter Dr.
- _/ _/ _/ _/ _/ _/ Montgomery AL, 36117
- _/ _/ _/ _/_/_/_/ _/ (205) 242-2675
- =========================================================================
- Date: Thu, 17 Nov 1994 09:26:35 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Service Message
-
- ....yes please, do NOT send the entire digest back. I've read all of them
- already and don't know if there's anything useful without reading the whole
- thing again.
-
- _Deirdre
- =========================================================================
- Date: Thu, 17 Nov 1994 08:01:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): backgrounding an applescript application
-
- Yeah, I'm leaning toward that approach mainly because my check mail script
- takes over everything and I'd like to set it up some idle handlers rather
- than some of the repeat loops I have happening now. Plus, there's a bunch of
- other stuff I'd like to implement in my Swiss Army applet. But where do I
- find the time. Does anyone know of an osax that allows you to do 60 minutes
- of work in 30 minutes?
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------ From: Macintosh Scripting Systems, Fri, Nov 18, 1994 ------
-
- You could also vary the technique to store a list of files to run a script
- on, or any of a zillion permutations. Regardless, you can put this script
- into your startup folder and it will run your scripts, one at a time.
-
- Jon
- =========================================================================
- Date: Thu, 17 Nov 1994 08:23:07 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: buyer's remorse
-
- > When I heard about the System 7.5 upgrade I
- > thought, "that sounds like a good deal. I can
- > get the Scriptable Finder, which I otherwise
- > would have to pay at least $25 for, and all
- > that other stuff thrown in for a few bucks
- > more."
-
- I originally thought that also, but Apple released version 1.2 of the Finder
- Scripting extension to on-line services (and to their ftp sites) a month or
- so before I ordered 7.5. I went ahead and ordered the upgrade because after a
- lot of thought I decided I needed/wanted PowerTalk. In my mind, PowerTalk is
- worth every cent of the price of the upgrade (even with its bugs).
-
- > And, yes, another $25 bucks here or there _is_
- > a big deal to me.
-
- $25 is just as important to me. But in my case, I paid $35 for the 7.5
- upgrade based on my June Power Mac purchase and it was worth every cent. I'm
- not sure I would have paid $99. Now, I have some doubts about buying the ARA
- 2.0.1 upgrade since some of what I use ARA for could have been done with
- direct dialup, but the 7.5 upgrade was a good deal.
-
- > Is there any way of using the Scriptable Finder
- > as it came with 7.5 with the old System.
-
- I d/led the Finder Scripting Extension 1.2 a month or so ago. It works with
- Finder 7.1.3 or later. Obviously, this ships with Power Macs, but it was was
- also part of a Macintosh Drag and Drop package I d/led from eWorld. Note that
- this Finder is not in every D&D package, but for some reason it was in the
- one that I originally d/led a couple of months ago.
-
- > The crashes I get are so random and
- > unreproducible, I don't know where to begin to
- > stabilize things. Anyone seen any compilations
- > of actual real figured out incompatabilities
- > anywhere?
-
- I get some wierd crashes, but I've finally got everything close to stable. My
- first problem was with my hard disk driver (APS 2.8.2 vs APS 3.0.5). Then, I
- tossed the Color Lookup extension and also the Apple Menu Items control
- panel. I've been going through like a mad man and junking things that just
- aren't worth the RAM (I've got to pay for the extra 2 or 3 megs used by
- PowerTalk somehow). I'm seriously considering RAMDoubler, but I wonder if it
- won't introduce more problems than it solves. I suppose my next task will be
- to junk the desktop patterns, but I'm getting attached to the placemat
- one.;-{>=
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
- =========================================================================
- Date: Thu, 17 Nov 1994 09:30:57 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: buyer's remorse
-
- Caution: non AppleScript message!
-
- I've been watching the Mac system newsgroup for a while to see what the
- deal was with system 7.5. Some people love it, others hate it, have
- problems, etc.
-
- There are *THREE* things you can do with system 7.5 that seem to make it
- work much better:
-
- 1) update your disk driver using the new Apple HD SC Setup if you have an
- Apple drive, or get the latest driver from your 3rd party drive
- manufacturer. Why? Because on all Quadras and PowerMacs the OS will use the
- new Scuzzy Manager if the driver's updated (and your disk 0/i will be
- faster) *OR USE THE COMPATIBILTY DRIVER WHICH MAKES YOUR DISK I/O SLOWER*
- if you stay with an old driver.
-
- 2) do a *clean* install, not an update! Do this by
- - dragging finder out of your current System Folder
- - renaming your System Folder to "Old System Folder"
- - proceed with the install
-
- - move back all your CPs and extensions and prefs (but not the
- finder prefs) to the new system folder
-
- 3) trash any CPs or extentions you are not going to use, turn off "Remember
- recently used items" in Apple Menu Options, set your disk cache to 512kb,
- dump any fonts you are not using.
-
-
- I've been running a PowerMac 7100 and a Centris 650 with 7.5 after doing a
- clean install and they are slightly faster, use about .5mb more memory for
- the system (mostly disk cache) and crash less that 7.1.
-
-
- Give these suggestions a try if you're having problems with 7.5
-
-
- Why? (Ah, the AppleScript Part!) Because if people are interested in buying
- 7.5 then we'll have a larger base of users of AppleScript, and that's a
- good thing (tm)
-
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Thu, 17 Nov 1994 09:49:25 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Service Message
-
- >Am I the only one getting these? This is the second or third one I've
- >received. Looks like someone putting their faith in Mr. Gates and Micro$oft
- >solving all the problems in the world :-)
- >
- >Steve Alex (steve_alex@aidt.edu)
- >
-
- Nope, I too have received them 3 times this morning. But I also have gotten
- just about all of my mesages several times today...hmm....
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 08:54:31 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Michael Adams <micadams@BLUE.UNIVNORTHCO.EDU>
- Subject: Maybe Applescript, maybe not
-
- I have a problem that is driving me kumquats (I'm not as fond of bananas).
- It may be an applescript problem or it may be a network problem. If anyone
- has any insight, I would be grateful.
-
- The situation:
- I have set up a mailing list on a novell server using maiser software. It
- listens on port 25. It works beautifully when I send a message via Eudora.
- My pop server is on an RS-6000.
-
- On my machine I have altered the "send mail" script of Atul Butte so that
- when I drop a text file on it, the script reads the first line of the text
- file, uses that as the subject line, and then automatically mails the rest
- of the text file as a mail message. This will be extremely useful as I am
- about to begin teaching a class via email. This way I can prepare "lessons"
- as text files and simply drop them on the droplet.
-
- This script works like a dream when sending it to myself on the pop server.
- But when I try to send it to the novell server list, I get the message
- "Syntax error in parameters or arguments". I clear that message and I get
- another one, "Error in parameters or arguments 501." I have looked in
- EasyErrors and 501 is not a valid error message for a Mac. I don't know if
- this is a MacTCP error, an OSAX error, a network error or what.
-
- Why would it work as advertised when going to the pop server, but won't go
- to the novell server?
-
- Even some insight on where to look or what to fiddle with would be helpful.
-
-
- ======================\/======================
- Michael Adams
- Writer/Editor, University News & Publications
- University of Northern Colorado, Greeley, Colorado 80639
- micadams@mail.UnivNorthCo.edu
-
- This message sent using recycled electrons. Please recycle again.
- ======================/\=======================
- =========================================================================
- Date: Thu, 17 Nov 1994 11:52:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: backgrounding an applescript application
-
- >I want to know how to make an applescript saved as a stay open application
- >stay in the background (as in, not appearing in the application menu) at
- >all times.
- >
- >Here's what I'm trying to do: I have a little script that, if it's two
- >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
- >database, and then quits it. I'm doing this so that the Today function gets
- >recalculated every day and at a time when no one is using it so they don't
- >have to sit through the calculation.
- >Clearly, this script needs to be open at all times, and I can't trust the
- >users of the system not to quit it if they see it in the application menu.
- >Hence my question.
- >
- >I tried a horrendous hack which, not surprisingly, didn't work: I opened
- >the size resource with ResEdit and checked the "Always Background" bit.
- >When launched, the script did in fact go into the background, but it also
- >crashed my computer when I checked the application menu.
- >
- >If anyone had other ideas about how to do this, that would be appreciated
- >too. I tried to use Cron to do this, but couldn't for the life of me get it
- >to open a file. I could beep with it, flash dialogs, open a _program_,
- >etcetera, but I absolutely couldn't get it to open a file.
- >
- >Any help would be appreciated. Thanks.
- >
- >Aaron Brockett
- >abrocke1@cc.swarthmore.edu
-
- I would recommend using FaceSpan to create your applet. FaceSpan allows
- you to define your applets menu bar ie. remove quit from the menu bar.
- This should stop your users from quitting it. Of course they could do a
- force quit but but hey, they could also just push the computer off the
- desk...
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Thu, 17 Nov 1994 10:58:17 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: buyer's remorse
-
- [...]
- I'm seriously considering RAMDoubler, but I wonder if it
- >won't introduce more problems than it solves. I suppose my next task will be
- >to junk the desktop patterns, but I'm getting attached to the placemat
- >one.;-{>=
- >
-
- I've been using RAMDoubler & MaxRAM (ftpable) for some yime now (2 months?)
- w/ 7.1 with no problems. I think it is definately worth the $$ and you can
- get it for about 50 from the redistributors (I think it's 99 from
- Connectrix).
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 09:18:29 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
- Subject: Re: buyer's remorse
-
- Subject: Time:8:56 AM
- OFFICE MEMO RE>buyer's remorse Date:11/17/94
-
- Barry Sez:
- > "I'm assuming, anyway, from my one experiment with it that I _can't_ use
- > the Finder that came with 7.5 with my 7.1 System."
-
- Aaaauuuuggghhh!! Mixing parts of different Systems WILL result in a hosed
- hard drive, and most likey hosed data as well. Mixing System components is
- like trying to fit your bicycle with your car's engine....suicide.
-
- > "...attempting to disable the old Finder without actually throwing it away
- was to put it on the
- > Desktop? Was that my mistake?"
-
- Having multiple Systems ("System" being a generic term for the set of software
- that controls your hard disk) on a single volume will cause problems.
-
- > "Is there any way of using the Scriptable Finder as it came with
- > 7.5 with the old System."
-
- Again, System Software is a suite of software parts that are put together to
- create a single, cohesive, compatible engine that controls the function of
- your computer. While you may (with much frustration and effort) be able to
- create a "FrankenSystem" that will seem to work, remember that Dr.
- Frankenstein's creation _seemed_ to work as well. And we all know how that
- turned out.
-
- > "I suppose I'll want to throw in the towel and keep living in the
- future..."
-
- Remember that the System writes all of your data to the hard disk, and then
- makes a catalog of what is on the disk (called a "directory"). If the System
- is questionable, then it is only logical to assume that the data on the hard
- disk is questionable. (Yes, including the directory. So files that have
- nothing to do with AppleScript of the System Folder [i.e - your data] may be
- hosed or lost as well.) At this point, my (albeit extreme, but safe)
- suggestion is to backup what little data may be salvageable, reformat the hard
- disk, and reinstall the System (whicher one you choose, but _only_one_!), then
- copy your data back to the drive. Otherwise you can never be sure that your
- directory map is not just going to up and explode one day. (Not trying to be
- fatalistic, I just know that after doing 8+ years of Tech Support, this is not
- an unreasonable scenario.)
-
- > "The crashes I get are so random and unreproducible, I
- > don't know where to begin to stabilize things. Anyone seen any
- > compilations of actual real figured out incompatabilities anywhere?"
-
- Just to reiterate; the problem is not incompatibilities, but an unstable
- FrankenSystem. The best way to isolate random crashes is a program from
- Casady & Greene called Conflict Catcher. Apple uses it in Software
- Development to assist in their troubleshooting, but it is simle enough to be
- used by the most inexperienced user.
-
-
- Finally, I do not mean to publicly ream you. I am just trying to be verbose
- so that anyone else considering similar actions know what they are getting
- into. Messing with the System is dangerous stuff. Before doing so in the
- future, anyone considering these kinds of actions should consider, "Do I
- really think that I know the System better than the whole fleet of Apple
- Software Engineers that created it?"
-
- Hope the information I provided above gives you the help you need to get back
- up and running, as well as help you understand how the System works a little
- better.
-
- - Christian
- jacobsen@george.arc.nasa.gov
-
- *** The opinions expressed herein are MINEMINEMINEMINE!!!! ***
- =========================================================================
- Date: Thu, 17 Nov 1994 11:54:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Messina <messina@MCS.COM>
- Subject: Eudora Announcer script
-
- I have some free time today, so I'm trying to set up the Eudora Announcer
- 1.0 script by Roel Vertegaal and Ronald Leenes.
-
- I have installed in my Scripting Additions Folder:
-
- Gestalt OSAX
- Eudora Notification Rev 2 OSAX
-
- I also have installed:
-
- Speech Manager
- Applescript (of course)
- Eudora 2.1
-
- In short, all the pieces seem to be in place. I fire up Eudora Announcer,
- but when new mail arrives, nothing happens.
-
- I think the answer lies in this bit of the description text from Eudora
- Announcer:
-
- "It will get a notification event (in background !!) from Eudora once you
- have notified Eudora to do so by using the Eudora Notify
- Controller."
-
-
- What exactly does this mean? Do I have to add a little script which will
- have Eudora send out a notify event whenever new mail comes?
-
-
- Thanks for any assistance,
-
- David
-
-
-
- --
-
- David Messina
- messina@mcs.com
- =========================================================================
- Date: Thu, 17 Nov 1994 10:37:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeff Johnson <jkjonson@ZNET.COM>
- Subject: Users, Groups, Program Linking
-
- Hello everyone!
-
- Sorry if this is a rehash of something previously covered in this mail
- list, but I'm a newbie (covering head in shame) to MACSCRPT.
-
- The Users and Groups control panel appears to be fairly unscriptable via
- the System 7.5 Finder. You can set the user name and some trivial
- properties of the user, but you can't set the password or turn sharing or
- program linking or remote access capabilities on or off through scripts.
- Clearly Apple wanted to prevent massive security breaches by preventing
- access to these user properties.
-
- I am developing an application in which I need to create a specific user
- name, with password, and turn program linking on for that user. I can't do
- it wit the Scriptable Finder directly, but I was wondering if there are any
- OSAXen out there which have this capability. If not I can live with just
- opening the Users and Groups control panel for the user and prompting them
- to create the user whose privileges I need, but I'd like a cleaner way to
- do it, if possible. Hard to do that without opening the system to all
- sorts of security holes, though.
-
- If anyone has heard of a public-key encryption OSAX for transferring secure
- information across PPC, I'd also like to know about that.
-
- Thanks!
-
-
-
- Jeff Johnson
-
- --------------------------------------------------------------------------------
- Software Engineer, Charon, Inc., Cupertino, California, USA
- --------------------------------------------------------------------------------
- #include <std/disclaimer.h> /* Any opinions expressed in my posts and email */
- /* are mine alone, and do not necessarily reflect */
- /* those of my employer or associates. */
- --------------------------------------------------------------------------------
- email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
- --------------------------------------------------------------------------------
- =========================================================================
- Date: Thu, 17 Nov 1994 10:46:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Eudora Announcer script
-
- >I have some free time today, so I'm trying to set up the Eudora Announcer
- >1.0 script by Roel Vertegaal and Ronald Leenes.
- >
- >"It will get a notification event (in background !!) from Eudora once you
- >have notified Eudora to do so by using the Eudora Notify
- >Controller."
- >
- >
- >What exactly does this mean? Do I have to add a little script which will
- >have Eudora send out a notify event whenever new mail comes?
- >
- Execute the following script in the script editor:
-
- tell application "Eudora 2.1"
- notify alias "theDisk:theFolder:Eudora Announcer 1.0" when mail arrives
- end tell
-
- You only have to do it once.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Thu, 17 Nov 1994 13:49:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Duffield <duffiem@AA.WL.COM>
- Subject: Re: Users, Groups, Program Linking
- In-Reply-To: Jeff Johnson <jkjonson@ZNET.COM> "Users, Groups,
- Program Linking" (Nov 17, 10:37am)
-
- On Nov 17, 10:37am, Jeff Johnson wrote:
- > Subject: Users, Groups, Program Linking
- > Hello everyone!
- >
- > Sorry if this is a rehash of something previously covered in this mail
- > list, but I'm a newbie (covering head in shame) to MACSCRPT.
- >
- > The Users and Groups control panel appears to be fairly unscriptable via
- > the System 7.5 Finder. You can set the user name and some trivial
- > properties of the user, but you can't set the password or turn sharing or
- > program linking or remote access capabilities on or off through scripts.
- > Clearly Apple wanted to prevent massive security breaches by preventing
- > access to these user properties.
- >
-
- Try
- set file sharing to true
- and
- set file sharing to false
-
- I found these in the "Automated Tasks" folder in the Apple Menu under 7.5.
-
- >
- > Jeff Johnson
- >
- >
- >-- End of excerpt from Jeff Johnson
-
-
-
-
- --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark J. Duffield | duffiem@aa.wl.com
- Sr. Systems Specialist |
- Preclinical Scientific Computing | MIME Spoken here.
- Parke Davis Pharmaceutical Research |
- Ann Arbor, MI 48105 |
- =========================================================================
- Date: Thu, 17 Nov 1994 19:01:43 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Re(2): backgrounding an applescript application
-
- Does anyone know of an osax that allows you to do 60 minutes
- >of work in 30 minutes?
- >
- >Dennis L. Whiteman
-
- Yup,
-
- It's called TimeDoubler, based on e=mc(squared) <ggg> Hard to find at your
- favorite site though...
- =========================================================================
- Date: Thu, 17 Nov 1994 19:02:28 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: more Eudora
-
- Two questions:
-
- 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
- body selected . Anyone tell me whether/how AS can be used to move the
- insertion point to the top or bottom of the quoted msg body? I haven't
- found an osax for it w/that capacity yet:
-
- >set theReply to reply message n of mailbox "test" with quoting and self
-
- 2) Anyone suggest how to test if a mailbox is 'open'? 'Open' doesn't appear
- to be a property of a mailbox. FileBusy doesn't seem to help either...
- =========================================================================
- Date: Thu, 17 Nov 1994 11:04:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: buyer's remorse
-
- >Caution: non AppleScript message!
-
- >2) do a *clean* install, not an update! Do this by
-
- Which you can do directly in system 7.5 with mumble-K in the Installer
- window (cmd/opt or cmd shift -- try all the combinations). This is
- documented in the manual (near the back). I guess they finally realised
- that we were tired of the "Clean System" dance.
-
- >3) trash any CPs or extentions you are not going to use, turn off "Remember
- >recently used items" in Apple Menu Options, set your disk cache to 512kb,
- >dump any fonts you are not using.
-
- Better still do a custom install for only your type of machine (assuming
- the system is not on a roving hard disk). The sift out the things your
- really don't need.
-
- >Give these suggestions a try if you're having problems with 7.5
-
- We have very few problems with System 7.5 -- its seems pretty stable. And
- it gets AppleScript to the masses (as John S said).
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Thu, 17 Nov 1994 11:06:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeff Johnson <jkjonson@ZNET.COM>
- Subject: Re: Kee's show and tell
-
- You wrote... {a bunch of text deleted}...
-
- >After getting frustrated with FaceSpan, I started using HyperCard as my
- >User Interface builder. So most of my UI is in HyperTalk.
- >
- >I have a sequence of tasks that are partly AppleScript and partly HyperTalk
- >so I built a set of buttons, each with a HyperTalk or AppleScript task. I
- >pass data between these scripts in card fields. Yes I know it's crude but
- >it gives me the ability to debug each button separately because the data
- >stays in the card fields.
- ...
- >It's probably worth talking about roadkill I've encountered along the way.
- >
- >FaceSpan was the first. It was just too painful to get it to do what I
- >wanted. Think of it as an abandoned card on the highway. It limps along if
- >you baby it but after a while it's faster to hitchhike and catch another
- >ride.
- ....
- >
- >Kee Nethery
- >
- >_______________________________________________________________
- >Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
-
- Kee,
-
- What exactly did you find troublesome about FaceSpan? I'm writing a fairly
- complex application in it right now, and although it was kind of weird at
- the beginning, I find i perfectly comfortable now. I wish it had an
- interactive debugger (are you listening, nice people at SDU? I hope so),
- and I've found a few redraw problems, but overall I'm fairly impressed.
- (This comes after years of developing in HyperCard and a frustrating
- experience trying to program something that looks a lot like FaceSpan but
- uses a superset of HyperTalk, which I won't mention by name). FaceSpan
- could use a few extra goodies, like drag and drop support, and I wouldn't
- mind if it executed scripts a bit more quickly.
-
- The one thing I do think's a bit weird about implementing scripts that
- control the same application on a number of Macs at once is that I have to
- write them out as text, substituting in the name of the Mac to which I want
- to send the events, and then execute the entire thing as a script object.
- For example, if I collect a list of Macs running PPCToolBox from the
- network, and I want to send the same script to the Finder on each of these
- Macs, I have to write the script out as text, substitute in the name of
- each Mac, copy the whole schmear into the script container of some object,
- and then tell that object to execute its script. I wish there were a nicer
- way to do this. Something like:
-
- copy "Zone" to zoneName
- copy {"Mac One","Mac Two","Mac Three"} to macList
- repeat with macName in macList
- tell application "Finder" of machine macName in zone zoneName
- ... miscellaneous Finder commands...
- end tell
-
- This would be very nice. Having to work around it is a pain in the butt,
- and slow besides.
-
- Maybe this is just a limitation of FaceSpan. Or is it a limitation of
- AppleScript in particular?
-
- Best regards,
-
-
-
- Jeff Johnson
-
- --------------------------------------------------------------------------------
- Software Engineer, Charon, Inc., Cupertino, California, USA
- --------------------------------------------------------------------------------
- #include <std/disclaimer.h> /* Any opinions expressed in my posts and email */
- /* are mine alone, and do not necessarily reflect */
- /* those of my employer or associates. */
- --------------------------------------------------------------------------------
- email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
- --------------------------------------------------------------------------------
- =========================================================================
- Date: Thu, 17 Nov 1994 11:10:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Doug Baron <userland@NETCOM.COM>
- Subject: Re: Frontier Listserv scripts (was Listserv scripts for the Mac)
-
- At 8:43 PM 11/15/94 -0500, Jay Thomas wrote:
- >>>Someone recently asked on the info-mac list about being able to provide
- >>>listserv email list management and processing on the Mac. While I haven't
- >>>seen anything to do this (at least in shareware), it occurred to me that
- >>>with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >>>the mac, that this might be possible through some scripting, so I thought I
- >>>would run this by you and see if anyone has worked on this.
- >>>
- >>> .....
- >>>
- >>>Does anyone have any feedback or suggestions on how this could be done
- >>>better on a Mac or things that I've overlooked that I should consider
- >>>before spending time on playing around with scripts to do this?
- >>>
- >>
- >>My only suggestion would be that you might use Frontier. I know that Dave
- >>Winer has implemented pretty much what you descibe with just Frontier and
- >>Eudara alone. No need for the scriptable finder, osax, or anything else to
- >>get the job done.
- >>
- >>Doug
- >
- >where can i get this? does it work with the frontier runtime.
-
- The answer, from Dave:
-
- At 7:23 AM 11/17/94 -0800, Dave Winer wrote:
- >Doug:
- >
- >It will work with Frontier Runtime just fine.
- >
- >And the scripts will be freely available. Just want to make a couple more
- >passes at cleaning them up so they're good sample code.
- >
- >If possible, pass this message onto the MACSCRPT mailing list.
- >
- >Dave
- =========================================================================
- Date: Thu, 17 Nov 1994 11:23:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: buyer's remorse
-
- >I suppose I'll want to throw in the towel and keep living in the future,
- >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
- >the moment, aside from the pretty little desktop pattern I doodled out
- >late one night. The crashes I get are so random and unreproducible, I
- >don't know where to begin to stabilize things. Anyone seen any
- >compilations of actual real figured out incompatabilities anywhere?
-
- System 7.5 is quite stable. There are some old INITs and applications
- which have long been broken, and which cause more problems with 7.5 than
- they did. These will only become older, stay broken, and cause more
- problems in the future. Sooner or later, you'll have to get rid of
- them...why not now?
-
- I'm not having System 7.5 problems, and have no intention of going back
- (except for one system on a Syquest, which I can run a couple of times a
- year when I need to use the fax side of my fax modem...pending some fax
- software house getting its act together).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 17 Nov 1994 11:23:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: I got this?
-
- >In message <2ecac0fe727f004@maroon.tc.umn.edu> Macintosh Scripting Systems
- >writes:
- >> Any one ever gotten this from the listserv here?:
- >>
- >> Sorry. Your message could not be delivered:
- >> Message contained no valid addresses.
- >>
- >> The subject line was: NDN: Newbie on Timer function
- >> and I never sent a message like that. Any ideas?
- >>
- >
- >I got it, too and I never sent a message so it was a big mystery to me, too.
- >Maybe somebody accidentally sent that to the list?
-
- Internet mail systems bounce messages back to the apparent sender if there
- are any of thousands of possible problems with them (in the case at hand,
- it seems to be a bogus address). These are automated...the programs don't
- care if you ask them not to...some send the whole message back, some don't.
-
- List server programs work very had to avoid reflecting those bounce
- messages to the lists they operate.
-
- Internet mail systems work very hard to produce new style bounce messages
- which the list server programs don't recognize as such. In this case, a
- mailer has succeeded in fooling the list server at Dartmouth (one of the
- better list servers, too).
-
- It's one of the seven wonders of the Internet.
-
- [It's also why you find yourself unsubscribed from lists you are on if you
- let your mailbox fill up for very long...part of the defensive actions by
- the list server programs and the list owners.]
-
- For light reading: "The Unix Haters Handbook" [yes, the Unix members of
- the community are large contributors to the problem] Garfinkel, Weise &
- Strassmann (with an "anti-foreward" by Dennis Ritchie). ISBN 1-56884-203-1
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 17 Nov 1994 13:44:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
- Subject: Re: Re(2): backgrounding an applescript application
-
- In message <199411171933.NAA25996@boombox.micro.umn.edu> Macintosh Scripting
- Systems writes:
- > Does anyone know of an osax that allows you to do 60 minutes
- > >of work in 30 minutes?
- > >
- > >Dennis L. Whiteman
- >
- > Yup,
- >
- > It's called TimeDoubler, based on e=mc(squared) <ggg> Hard to find at your
- > favorite site though...
-
- Not at all! It's going to be available on all the major archive sites
- beginning tomorrow.
-
-
- Stephen E. Collins <URL:http://www.micro.umn.edu/staff/sec>
- University of Minnesota sec@boombox.micro.umn.edu
- Distributed Computing Services (612) 625-1300 Fax: 625-6817
-
- Remember to give back to the net.
- =========================================================================
- Date: Fri, 18 Nov 1994 08:57:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: OSAX source??
-
- "Allan R. Crump Jr" <jhhw@CRL.COM> writes:
-
- >I am an avid learner in programming and have enjoyed every moment of
- >putting the finishing touches on my first application. For my next
- >project, I am trying to finish up my first OSAX, written in Think Pascal.
- >I am having a bit of trouble however, with the compiler complaining that
- >"THEPORT" is not defined. I have insured that all of the correct
- >libraries are added to the project and in the right order, and that my
- >syntax is correct.
-
- Bad, bad. "thePort" is a QuickDraw global, which lives in the A5 world.
- Only applications have their own A5 worlds; your osax does not. Thus, it
- cannot access QuickDraw globals in the conventional way, using names like
- "thePort".
-
- Thought: are you calling InitGraf? You don't need to. Maybe that's all the
- problem is.
-
- >Would someone (preferably a Pascal programmer) be willing to post or
- >forward some source code on the creation of their OSAX so I can compare and
- >see what I may be doing wrong ?
-
- I'd be willing to share some Modula-2 code, since that's what I write my
- stuff in.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 17 Nov 1994 13:22:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
- Subject: BeyondMenus XTension
-
- Those of you that script QuarkXPress might want to download Acrobyte's new
- BeyondMenus XTension - among other things, BeyondMenus adds a 'Scripts' menu
- to XPress which reflects the contents of a 'Scripts' folder in the QuarkXPress
- folder. Placing a script in this folder causes it to appear in the menu (you
- can create hierarchies), and you can assign key equivalents to any script.
- Scripts are also executed in-context (they're _fast_), and BeyondMenus also
- caches the script executables for additional speed. (There is more
- functionality,
- but I'll let you download it to find out :-)).
-
- BeyondMenus is available at the following locations:
-
- ftp://sumex-aim.stanford.edu/info-mac/app/quark-beyond-menus-10.hqx
-
- Compuserve:
- Mac DTP Forum - Demos
- Quark Forum - XTensions
-
- eWorld:
- Ziff Software
-
- AOL:
- DeskTop Publishing/Software
- Quark/3rd party XTensions
- =========================================================================
- Date: Fri, 18 Nov 1994 09:48:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: buyer's remorse
-
- Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
-
- >I'm assuming, anyway, from my one experiment with it that I _can't_ use
- >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
- >first, but I couldn't move anything to or from the Desktop. Or, was that
- >just because my way of attempting to disable the old Finder without
- >actually throwing it away was to put it on the Desktop?
-
- I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work. My method of disabling
- the Finder is to rename it with ResEdit. I currently have three Finders in
- my System Folder: the original Finder 7.1.4, a patched version to disable
- the no-oping of the scrollbar delay, and a working copy of the latter, which
- is what I'm currently running.
-
- What exactly happened when you tried moving stuff to/from the desktop?
-
- >I suppose I'll want to throw in the towel and keep living in the future,
- >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
- >the moment, aside from the pretty little desktop pattern I doodled out
- >late one night.
-
- I've been using the Desktop Textures collection for some time now, and that's
- much more fun than the fairly boring patterns that come with 7.5. And when I
- sent them the shareware fee, they mailed me a disk with some more patterns on
- it!
-
- > The crashes I get are so random and unreproducible, I
- >don't know where to begin to stabilize things.
-
- For each of the 7.5 installs that I've done, I've followed a procedure like
- the following:
- * turn on the RAM disk. Make it big enough to hold a copy of the System,
- Finder, any necessary System Enabler, Disk First Aid and HD SC Setup
- (or an appropriate third-party alternative). If you're installing the
- new system from a CD-ROM, you'll also need the CD-ROM driver. If you're
- installing from an AppleShare server, you'll need the Chooser and
- AppleShare extension, plus the EtherTalk extension if you're on Ethernet.
- * Having copied these things to the RAM disk, set your startup disk to the
- RAM disk and restart.
- * Run Disk First Aid to check out your hard disk, and fix any problems it
- finds. Run HD SC Setup, or whatever your favourite hard disk formatting
- utility is, and make sure your drivers are up to date. If you've got a
- non-Apple hard disk, I have had good results with the FWB Hard Disk Toolkit.
- * Do the install of the new system. If you had any kind of flakiness before,
- it might be safest to do a clean install, rather than update your existing
- system.
- * Having finished the install, you can now switch your startup disk back
- to your hard disk, and restart. After that, you can trash the contents
- of the RAM disk and turn it off.
-
- I know I have one colleague (with a Power Mac 6100/60) who was suffering
- incredible random flakiness with his system, just like you report. The single
- thing I did that cleared up most of his problems for him was to update his
- hard disk driver.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 17 Nov 1994 14:49:15 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
- Subject: Re: OSAX source??
-
- >I am trying to finish up my first OSAX, written in Think Pascal.
- >I am having a bit of trouble however, with the compiler complaining that
- >"THEPORT" is not defined.
-
- If the linker complains that "ThePort" is not defined then you are probably
- referencing system globals that are not directly available with the
- libraries that you need to use for stand alone code like an OSAX. Innocent
- loking variables like the patterns 'gray' or 'black' are compiled as
- references to offsets from the global variable "ThePort" which is only
- directly accessible from an application.
-
- |-------------------------------------------------------------|
- Steve Bryan Internet: sbryan@maroon.tc.umn.edu
- Sexton Software CompuServe: 76545,527
- Minneapolis, MN 55415 Fax: (612) 929-1799
- =========================================================================
- Date: Thu, 17 Nov 1994 16:12:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Service Message
-
- On 11/17/94, Steve Alex opined:
-
- >> Supplementary information: Message was undeliverable to Microsoft mail.
- >> confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
-
- > ...Going on to send the digest back to the list.
-
- Digest software should refuse mail from addresses like "root" and
- "postmaster" and in fact should send it BACK with a nasty note. Never mind
- runaway vacation programs that respond to themselves.
-
- Furthermore, the mail program calls this kind of thing "service."
-
- (I would also suggest that individuals should buy service from more
- reliable providers. I'd be pretty leery of putting anyone on a mailing
- list I ran if their site had been known to spit out this kind of thing.)
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Thu, 17 Nov 1994 16:12:28 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: buyer's remorse
-
- On 11/17/94, Dennis Whiteman opined:
-
- > I'm seriously considering RAMDoubler, but I wonder if it
- > won't introduce more problems than it solves.
-
- RAM Doubler works very well until the following two things happen together.
-
- (1) You're running MacTCP (which is a joke in itself)
- (2) RD needs to store RAM to disk.
-
- Then you risk a crash. I've only had this happen ONCE since I installed
- the ""040 VM Update" extension, tho.
-
- I became suspicious of RD when I noticed MacsBug reporting I;d dropped into
- the debugger allegedly inside procedures which belonged to programs that
- weren't even running at the time.
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Thu, 17 Nov 1994 16:53:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: buyer's remorse
- In-Reply-To: <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" at Nov 18, 94 09:48:00 am
-
- --Lawrence D'Oliveiro wrote:
- >
- >Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
- >
- >>I'm assuming, anyway, from my one experiment with it that I _can't_ use
- >>the Finder that came with 7.5 with my 7.1 System. It seemed to work at
- >>first, but I couldn't move anything to or from the Desktop. Or, was that
- >>just because my way of attempting to disable the old Finder without
- >>actually throwing it away was to put it on the Desktop?
- >
- >I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
-
- As am I, since this is what I'm running on my 8100.
-
- >What exactly happened when you tried moving stuff to/from the desktop?
-
- The problem of not being able to move items from one folder to the
- next generally comes about when you don't have all the pieces of the
- Drag Manager properly installed. Make sure you have the 1.1 version of
- the Macintosh Drag and Drop extension installed. Your best bet is to
- just get a fresh copy of the complete install from ftp.apple.com.
-
- -Hades
- =========================================================================
- Date: Thu, 17 Nov 1994 17:55:14 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: BeyondMenus XTension
-
- risch@ALUMNI.CS.COLORADO.EDU (Ralph Risch) says:
- > Those of you that script QuarkXPress might want to
- > download Acrobyte's new BeyondMenus XTension - among
- > other things, BeyondMenus adds a 'Scripts' menu to
- > XPress which reflects the contents of a 'Scripts' folder
- > in the QuarkXPress folder. Placing a script in this
- > folder causes it to appear in the menu (you can create
- > hierarchies), and you can assign key equivalents to any
- > script.
-
- Quark XTensions are very cool; Quark is very nice and gives you a great deal
- of control over the program. I just wish I'd known about scripting THEN (when
- I was writing them professionally) because I could have saved a lot of
- effort. :D
-
- Then again, none of the product's users had AppleScript....
-
- _Deirdre
- =========================================================================
- Date: Thu, 17 Nov 1994 17:55:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: OSAX source??
-
- While this is true, you can use GetPort to get the current GrafPort. Think C
- allows you to use the Setup/Restore A4. Though I haven't tried it from an
- osax, it works well enough from an LDEF.
-
- You should not be initializing managers (e.g. InitGraf) btw.
-
- _Deirdre
-
- sbryan@MAROON.TC.UMN.EDU (Steve Bryan) says:
- > If the linker complains that "ThePort" is not defined
- > then you are probably referencing system globals that
- > are not directly available with the libraries that you
- > need to use for stand alone code like an OSAX. Innocent
- > loking variables like the patterns 'gray' or 'black' are
- > compiled as references to offsets from the global
- > variable "ThePort" which is only directly accessible
- > from an application.
- =========================================================================
- Date: Thu, 17 Nov 1994 17:55:35 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Grr...More Scripting from C issues
-
- I have this code fragment (below). I am reading in not a text resource, but a
- glob saved to a text file (no styles, just plain old text). I read it in. It
- compiles fine, but it won't execute. The text it's reading in is further down
- -- and was copied and pasted to said text file from the AppleScript Editor,
- so I know it's right.
-
- I get an error -1753 (ScriptError) when I try OSAExecute. By the way, it's
- launching the app, so I know the first document is indeed document 1.
-
- HLock(scriptText);
-
- myErr = AECreateDesc('TEXT', *scriptText, GetHandleSize(scriptText),
- &sourceData);
-
- progressMsg("\pCompiling Scriptx");
- myErr = OSACompile(gScriptingComponent, &sourceData, modeFlags,
- &ourScriptRef);
-
- // We've now compiled the script, so all that's left to do is execute it.
-
- progressMsg("\pAttempting to Run Scriptx");
- myErr = OSAExecute(gScriptingComponent, ourScriptRef, kOSANullScript,
- kOSAModeNull,
- &scriptResult);
-
- HUnlock(scriptText);
-
-
- Script text follows:
-
- tell application "Scriptable Text Editor"
- activate
- paste
- select contents of document 1
- end tell
- =========================================================================
- Date: Fri, 18 Nov 1994 00:24:15 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Users, Groups, Program Linking
-
- > I am developing an application in which I need to create a specific user
- > name, with password, and turn program linking on for that user. I can't do
- > it wit the Scriptable Finder directly, but I was wondering if there are any
- > OSAXen out there which have this capability. If not I can live with just
- > opening the Users and Groups control panel for the user and prompting them
- > to create the user whose privileges I need, but I'd like a cleaner way to
- > do it, if possible. Hard to do that without opening the system to all
- > sorts of security holes, though.
-
- Quinn the mighty "Eskimo!" has written the users and groups osaxen. I'm sure
- they are probably in the gaea archive but (according to his readme) you can
- also get them at:
-
- ftp://redback.cs.uwa.edu.au/Others/Quinn/
-
- > If anyone has heard of a public-key encryption OSAX for transferring secure
- > information across PPC, I'd also like to know about that.
-
- I haven't heard of anything like this.
-
- __wayne
- =========================================================================
- Date: Thu, 17 Nov 1994 11:29:00 CUT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brendan T. Bank" <brendan@TEXTLITHO.NL>
- Subject: FMP AE open with password
-
- I finaly got it, mayby it an FAQ but here it is anyway
-
- Thit is the way to open a file from Userland Frontier with a password included
-
- on open_pw (obj , password)
- return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
- 'pPAS',password))}
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- Brendan Bank Postal Adress E-Mail: brendan@textlitho.nl
- Foto Factotum P.O. Box 335 Voice: ..-31-35-881131
- Oosterengweg 44 1200 AH Hilversum Fax: ..-31-35-881199
- 1212 KN Hilversum The Netherlands Private: ..-31-23-311065
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- =========================================================================
- Date: Thu, 17 Nov 1994 15:54:15 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Alexander Broquet <alexander_broquet1@QM.CLARIS.COM>
- Subject: PhotoFlash Resize Property
-
- Subject: Time: 3:29 PM
- OFFICE MEMO PhotoFlash Resize Property Date: 11/17/94
- I'm trying to use PhotoFlash to resize an image and constrain it to file
- size. I can get it to work manually but not via scripting. Here's a
- simplified version of the script...
-
- tell application "PhotoFlash(tm)"
- activate
- make new image at beginning
- resize image of document 1 with file size constrained
- paste
- end tell
-
- Before I run the script, I copy a pict to the clipboard. What I would like
- PhotoFlash to do is resize the image to fit the size of the image on the
- clipboard. Instead I get the default image dimensions (1.78 by 1.78 inches).
- I've tried various placements of the resize event with no luck.
-
- Any ideas?
- =========================================================================
- Date: Thu, 17 Nov 1994 17:00:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Michael Adams <micadams@BLUE.UNIVNORTHCO.EDU>
- Subject: Maybe Applescript Yes
-
- I continued to fiddle with this script, trying another mail server that is
- also a novell server, and finally got an error message that made more
- sense. It says:
-
- Error: Can't get <<class lhst>> of {class:stream status, bytes waiting:0,
- connection status:connected, local host:"138.86.11.60",local
- port:1569,remote host:"138.86.1.10",remote port:25}. -1728
-
- First off, -1728 is not a Mac error according to easy errors 1.1. Next,
- those parameters are the very params in the dictionary of the TCP/IP OSAX
- under class:stream status. I was getting more excited by the minute (this
- is my first real functional project in scripting).
-
- So I'm left with this question. What is the <<class lhst>>? To what does
- that refer?
- It looks like everything else in the script was working up to that point.
- The parameters mention correct addresses, connected status, etc.
-
- Could this have something to do with the configuration of the novell
- mailer? After all, the exact same script works great with a pop server
- under AIX.
-
- Any thoughts are appreciated.
- =========================================================================
- Date: Thu, 17 Nov 1994 18:30:38 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Digest dumps
-
- > >Report on your message to: /U=Unknown/@mr.wyeth.com
- > >Reason: Unable to transfer; message formatting problem (1)
- > >Diagnostic: Maximum time expired (5)
- > >Supplementary information: Message was undeliverable to Microsoft mail.
- Error
- > > confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
- > >Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
- >
- > ...Going on to send the digest back to the list.
- >
- > Am I the only one getting these? This is the second or third one I've
- > received. Looks like someone putting their faith in Mr. Gates and
- Micro$oft
- > solving all the problems in the world :-)
- >
- > Steve Alex (steve_alex@aidt.edu)
-
- I'm getting the digest dumped in my mailbox too and I don't subscribe that
- way. Got two of them today. Looks like there's some sort of problem.
-
- Peter
- =========================================================================
- Date: Thu, 17 Nov 1994 19:01:38 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Frontier Listserv scripts (was Listserv scripts for the Mac)
-
- >At 7:23 AM 11/17/94 -0800, Dave Winer wrote:
- >>Doug:
- >>
- >>It will work with Frontier Runtime just fine.
- >>
- >>And the scripts will be freely available. Just want to make a couple more
- >>passes at cleaning them up so they're good sample code.
- >>
- >>If possible, pass this message onto the MACSCRPT mailing list.
- >>
- >>Dave
-
- Very cool! Can't wait till they're ready!
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Fri, 18 Nov 1994 14:50:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Kee's show and tell
-
- Kee Nethery <kee@KAGI.COM> relates:
-
- [most of an interesting tale omitted]
-
- >After getting frustrated with FaceSpan, I started using HyperCard as my
- >User Interface builder. So most of my UI is in HyperTalk.
-
- Funny, that. HyperCard doesn't get much respect these days. And, let's face
- it, it was never purpose-built for anything in particular. But then, that
- meant it was equally adaptable for all kinds of uses. And it still remains
- one of the most hackable tools around: if it doesn't seem to have the
- built-in capability to do something, you can usually work up some kind of
- extension to add that capability. Hacking HyperCard is an activity with a
- long, well-understood tradition.
-
- Lawrence "Think of it as software plasticine" D'Oliveiro
- =========================================================================
- Date: Thu, 17 Nov 1994 18:53:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Klaus P. Fechner" <klaus@FORSYTHE.STANFORD.EDU>
- Subject: Re: buyer's remorse
-
- >I'm assuming, anyway, from my one experiment with it that I _can't_ use
- >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
- >first, but I couldn't move anything to or from the Desktop. Or, was that
- >just because my way of attempting to disable the old Finder without
- >actually throwing it away was to put it on the Desktop? Was that my
- >mistake? Is there any way of using the Scriptable Finder as it came with
- >7.5 with the old System.
-
- Very interesting! Which machine are you using?
-
- I am experiencing the exact same problem, except that I think is is caused
- by the Drag&Drop extension (along with Finder 7.1.4 which I got from my 7.5
- disk at work). I have run a Now StartupManager check on this and much to my
- surprise it pointed out the Drag&Drop extension as the sole culprit. Just
- because I don't completely trust all Now software, I tried it also with
- absolutely no extensions other than D&D, and it still happened: I can't
- drag anything off the desktop or onto a desktop item!
-
- This is on a (don't laugh!) accelerated SE, running 7.1 for lack of an
- upgrade of Connectix' Compact Virtual for 7.5 compatibility.
-
- Anyone have any other ideas?
-
- Sorry if this is a little off the mainstream of this list, but I'd love to
- have D&D working so I can record some drags in the Finder ;-)
-
- Klaus
-
- Klaus P. Fechner, Palo Alto, CA, USA
- =========================================================================
- Date: Fri, 18 Nov 1994 15:58:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: buyer's remorse
-
- "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
-
- >--Lawrence D'Oliveiro wrote:
- >>
- >>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
- >
- > As am I, since this is what I'm running on my 8100.
-
- I doubt it. Power Macs need at least System 7.1.2, and they all come with
- Finder 7.1.4 already.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 17 Nov 1994 21:48:16 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: buyer's remorse
-
- >(1) You're running MacTCP (which is a joke in itself)
- >(2) RD needs to store RAM to disk.
- Like I said before, I've been running RD for about 2 months now /with
- MacTCP/ (1.1.1) and have not noticed anything strange related to it. You
- say you were getting stack crawls for apps that weren't running...? Now
- that is odd... How did you decide it was RD's fault?
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 21:54:07 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Karl F. Bridges" <cfkfb@EIU.EDU>
- Subject: Re: BeyondMenus XTension
- In-Reply-To: <9411180342.AB16730@ux1.eiu.edu> from "Deirdre Saoirse-Savino" at
- Nov 17, 94 05:55:14 pm
-
- Does anyone know where this Xtension is available over FTP?
-
- >
- > risch@ALUMNI.CS.COLORADO.EDU (Ralph Risch) says:
- > > Those of you that script QuarkXPress might want to
- > > download Acrobyte's new BeyondMenus XTension - among
- > > other things, BeyondMenus adds a 'Scripts' menu to
- > > XPress which reflects the contents of a 'Scripts' folder
- > > in the QuarkXPress folder. Placing a script in this
- > > folder causes it to appear in the menu (you can create
- > > hierarchies), and you can assign key equivalents to any
- > > script.
- >
- > Quark XTensions are very cool; Quark is very nice and gives you a great deal
- > of control over the program. I just wish I'd known about scripting THEN (when
- > I was writing them professionally) because I could have saved a lot of
- > effort. :D
- >
- > Then again, none of the product's users had AppleScript....
- >
- > _Deirdre
- >
-
-
- --
-
-
- *****************************************************************************
- Karl Bridges
- cfkfb@eiu.edu
- *****************************************************************************
- =========================================================================
- Date: Fri, 18 Nov 1994 16:54:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Grr...More Scripting from C issues
-
- Deirdre Saoirse-Savino <Deeny3@AOL.COM> writes:
-
- >I get an error -1753 (ScriptError) when I try OSAExecute.
-
- Did you try calling OSAScriptError, to find out what the error was?
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Thu, 17 Nov 1994 23:45:50 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mike Alexander <Mike.Alexander@UMICH.EDU>
- Subject: Re: OSAX source??
-
- >While this is true, you can use GetPort to get the current GrafPort. Think C
- >allows you to use the Setup/Restore A4. Though I haven't tried it from an
- >osax, it works well enough from an LDEF.
-
- Yes, but be careful. Depending on who is calling you, there may not be a
- current GrafPort. It should be safe enough from an LDEF, but perhaps not
- from an osax if it is called by some background process when the machine is
- in some strange state. Osax's may be ok, but I've seen examples in other
- code (XTND translators, for example) where they tried to use a non-existant
- current GrafPort and crashed.
-
- Mike Alexander Internet: mta@umich.edu
- University of Michigan America Online: MAlexander
- ITD - Research Systems AppleLink: UMICH
- =========================================================================
- Date: Thu, 17 Nov 1994 22:49:27 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Users, Groups, Program Linking
-
- >> If anyone has heard of a public-key encryption OSAX for transferring secure
- >> information across PPC, I'd also like to know about that.
- >
- >I haven't heard of anything like this.
-
-
- If it were bAsed on the RSA ("MacPGP") encryption scheme, methinks it would
- be quite difficult to compile and still be usable. Maybe you could use
- MacPGP 2.6ui which is scriptable to encrypt something and then transfer it,
- later decoding it, but that seems sort of tedious...
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 21:42:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: { brad brace } <bbrace@NETCOM.COM>
- Subject: Microphone script
- In-Reply-To: <199411180509.VAA00871@mail2.netcom.com>
-
- Just thanks
- For the suggestions offered
-
- --
- { brad brace } bbrace@netcom.com
- ftp://ftp.netcom.com/pub/bbrace/bbrace.html ~finger for pgp
- __
- =========================================================================
- Date: Thu, 17 Nov 1994 23:37:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Character mappings used here?
-
- > It doesn't compile because you haven't use the chevron characers.
- > To create the chevron characters =AB=BB, use option-\ and shift-option-\.
-
- What message decoding option will allow me to see the special characters used
- by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
- gateway with the default body text translation, namely: RFC 822->987 USA.
-
- --David
- ___________________________________________
- David Jokinen ground@interlink.net
- Ground Zero Software Montreal, Quebec, CA
- =========================================================================
- Date: Fri, 18 Nov 1994 00:28:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re: Kee's show and tell & FaceSpan
-
- Kee Nethery wrote:
- > FaceSpan was the first [roadkill]. It was just too painful to get it
- > to do what I wanted. Think of it as an abandoned card on the highway.
- > It limps along if you baby it but after a while it's faster to
- > hitchhike and catch another ride.
-
- Thanks, Kee, for this enlightening peek behind the scenes of Peter Lewis'
- Robotic Shareware Empire [a well-deserved success].
-
- I love FaceSpan, but after working with it in depth, I think Apple and SDU
- made a big mistake bundling this thing with the AppleScript Developers Kit.
- It's a classic case of bad product positioning.
-
- FaceSpan is a fabulous tool for mocking up user interfaces for "real"
- software. I've used it to design several C++ applications, and it's come
- through for me as an efficient UI communication tool. Everyone gets the
- picture, before you start coding. The AppleScript support is just a means to
- this end. FaceSpan apps are of no value as software.
-
- I don't know who got it into their head that everyone who used AppleScript
- would need to use FaceSpan, but I'm sorry to say they were wrong. It's just
- hurting a great product, because people are missing the point of it. SDU
- should take it back, hike the price, and reposition it as the premier UI
- design tool. Right now, it's just wasting our time.
-
- --David
- ___________________________________________
- David Jokinen ground@interlink.net
- Ground Zero Software Montreal, Quebec, CA
- =========================================================================
- Date: Fri, 18 Nov 1994 01:24:48 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): OSAX source??
-
- Tangent Alert! Actual uncensored C code below!
-
- Steve Bryan says:
- > If the linker complains that "ThePort" is not defined
- > then you are probably referencing system globals that
- > are not directly available with the libraries that you
- > need to use for stand alone code like an OSAX. Innocent
- > loking variables like the patterns 'gray' or 'black' are
- > compiled as references to offsets from the global
- > variable "ThePort" which is only directly accessible
- > from an application.
-
- Deirdre says:
- > While this is true, you can use GetPort to get the current GrafPort.
- > Think C allows you to use the Setup/Restore A4. Though I haven't
- > tried it from an osax, it works well enough from an LDEF.
-
- Lawrence D'Oliveiro says:
- > Bad, bad. "thePort" is a QuickDraw global, which lives in the A5
- > world. Only applications have their own A5 worlds; your osax does
- > not. Thus, it cannot access QuickDraw globals in the conventional
- > way, using names like "thePort".
-
- Yes, watch out! SetUpA4/RestoreA4 will let you GetPort, but you won't be
- getting the "real" thePort. You'll get a bogus copy that's part of your code
- resource. Everything compiles just fine, but nothing will work. You'll be
- debugging until next Christmas. Here's how I do it:
-
- /* Sorry for C notation. Could someone please translate to Pascal for Steve?
- */
-
- #include <SetUpA4.h> // warning: generates code
-
- /* Entry point of your code resource */
-
- main() {
- GrafPtr theRealPort; // treat this as a substitute for thePort
-
- RememberA0(); // save a pointer to your code resource for SetUpA4()
- SetUpA4(); // prepare access to your globals
- theRealPort = **(GrafPtr **)CurrentA5; // Get your caller's thePort
-
- // do your thePort stuff using theRealPort instead
-
- RestoreA4(); // avoid confusing your caller
- }
-
- If anyone is interested, this stuff is pretty well documented in the THINK C
- manuals. I have no idea whether this technique will be valid with your
- particular Pascal compiler, Steve. Good luck!
-
- --David
- ___________________________________________
- David Jokinen ground@interlink.net
- Ground Zero Software Montreal, Quebec, CA
- =========================================================================
- Date: Fri, 18 Nov 1994 01:35:37 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Jokinen <ground@INTERLINK.NET>
- Subject: Re(2): Users, Groups, Program Linking
-
- Wayne wrote:
- > Quinn the mighty "Eskimo!" has written the users and groups osaxen.
- > I'm sure they are probably in the gaea archive but (according to his
- > readme) you can also get them at:
- >
- > ftp://redback.cs.uwa.edu.au/Others/Quinn/
-
- Speaking of which, does anyone know where I can reach Greg T. Quinn? The only
- address he ever published was gtq1@cornell.edu, but that's a black hole. I've
- been trying for months to send him a check, but where?
-
- --David
- ___________________________________________
- David Jokinen ground@interlink.net
- Ground Zero Software Montreal, Quebec, CA
- =========================================================================
- Date: Thu, 17 Nov 1994 22:45:21 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: Re: Kee's show and tell
-
- >What exactly did you find troublesome about FaceSpan?
-
- Had to create a prefs file to store configuration data into. The ability of
- HyperCard to remember stuff is quite nice. I needed to do a bunch of text
- processing and I personally found the combination of AppleScript and no
- place to store variables just too much. But the real kicker was what seemed
- to be some sort of memory leak. It was a long time ago (in finger strokes)
- that I attempted to bend FaceSpan to do my bidding. The creation cycle,
- seemed slow and the debugging was non-existent.
-
- Other than that, sure seemed like a good idea, but I find HyperCard more
- productive for my needs.
-
- Kee Nethery
- =========================================================================
- Date: Fri, 18 Nov 1994 00:58:01 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: audio CD and GTQLib
-
- I'm having one inane problem with the GTQLib and writing a script to
- control my CD drive.
- Here's part of the script:
- ..... if button returned of result is "Goto Track..." then
- ..... display dialog "Which track number?" default answer "" buttons
- {"OK"} default
- ..... button "OK"
- ..... set theTrack to text returned of result
- ..... play audio CD starting with track (theTrack as integer)
- end if
-
- This is the third in a string of if then else statements. All works fine,
- unless the number I put into the dialog is 8 or over. I get a "Parameter
- error" surrounding the line starting with "play..." Anyone have any ideas?
- And yes, I have looked at both the dictionary and the docs, neither of
- which say anything about a limit to the number for specifying a track.
- TIA,
-
- -J
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Fri, 18 Nov 1994 01:01:39 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: audio CD and GTQLib
-
- Sorry to double post, but I just remembered the other possible problem. One
- of the ifs is an eject command and as many of you may know, if you tartup
- with a CD in and have filesharing on, you cannot eject the disk. When this
- happens, I get a nice error telling me "File busy", which is fine for me,
- but it also puts up the "OK" and "Edit" buttons. I will at some point be
- giving this little applet away to friends who are not scripters, and do not
- have the SE. How can I put an "on error" type of dialog instead of this
- built in one?
-
- Again, TIA,
- -J
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Thu, 17 Nov 1994 23:47:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
-
- >Does anyone know of an osax that allows you to do 60 minutes
- >of work in 30 minutes?
-
- I've been writing one, but it always seems to be 2 weeks away from working.
-
- Jon
- =========================================================================
- Date: Thu, 17 Nov 1994 23:47:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Grr...More Scripting from C issues
-
- Deirdre Saoirse-Savino <Deeny3@AOL.COM> wrote:
- >
- >I have this code fragment (below). I am reading in not a text resource, but a
- >glob saved to a text file (no styles, just plain old text). I read it in. It
- >compiles fine, but it won't execute. The text it's reading in is further down
- >-- and was copied and pasted to said text file from the AppleScript Editor,
- >so I know it's right.
- >
- >I get an error -1753 (ScriptError) when I try OSAExecute. By the way, it's
- >launching the app, so I know the first document is indeed document 1.
-
- You need more code, as outlined later, but here's an optimization to the
- stuff you posted.
-
- HLock(scriptText);
- myErr = AECreateDesc('TEXT', *scriptText, GetHandleSize(scriptText),
- &sourceData);
- HUnlock(scriptText); // Moved here because the text is copied by
- // AECreateDesc. This is probably the biggest
- // problem with the AE manager IMHO. It always
- // copies data.
-
- The single most important thing you can do for your own stability is to
- implement the OSASendProc. When you open your component instance you
- assign a procedure that gets called instead of AESend when the script is
- running. In it, you call AESend. You add the AEIdleProc parameter and all
- of a sudden you get all the events you were expecting to get during script
- execution. If you implement the OSAActiveProc too, you'll get idle calls
- during repeat loops and such. Necessary stuff to run scripts well.
-
- Lawrence's suggestion was right on though. -1753 is the "I got an error"
- error. You have to call OSAScriptError repeatedly to get the various parts
- of the script's error message. Generally you get the number and the
- message. You can also get the offending object (if there was one returned)
- and the error range (where in the text the error was, for hiliting), as
- well as a couple of other less used items.
-
- Your script, while simple, could easily generate errors. I found that if I
- ran it, closed the window, but not the program, and ran it again, it
- errored because there was no open window. I'll bet that's the problem.
- Beef up your error handling, because you'll make more errors and you'll
- want to know where they are. ;)
-
- Jon
- =========================================================================
- Date: Thu, 17 Nov 1994 23:51:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: buttons blinking
-
- I took computer programming and slide rules between 5th and 6th grade. We
- had a teletype with paper tape going to a mainframe downtown. I could read
- the dots on the tape. Rubout was my friend.
-
- Now I occasionally play with single chip micros and I build circuits and
- program in assembly (C is for wimps). An blinking lights are about the only
- debugging tools available on a small single chip micro.
-
- I like blinking lights, they are my friend. :-)
-
- Kee
-
- _______________________________________________________________
- Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Fri, 18 Nov 1994 19:22:15 +1100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
- Subject: Re: buyer's remorse
- In-Reply-To: <199411180759.SAA13910@ariel.ucs.unimelb.EDU.AU> from "Klaus P.
- Fechner" at Nov 17, 94 06:53:17 pm
-
- >
- > >I'm assuming, anyway, from my one experiment with it that I _can't_ use
- > >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
- > >first, but I couldn't move anything to or from the Desktop. Or, was that
- > >just because my way of attempting to disable the old Finder without
- > >actually throwing it away was to put it on the Desktop? Was that my
- > >mistake? Is there any way of using the Scriptable Finder as it came with
- > >7.5 with the old System.
- >
- > Very interesting! Which machine are you using?
- >
- > I am experiencing the exact same problem, except that I think is is caused
- > by the Drag&Drop extension (along with Finder 7.1.4 which I got from my 7.5
- > disk at work). I have run a Now StartupManager check on this and much to my
- > surprise it pointed out the Drag&Drop extension as the sole culprit. Just
- > because I don't completely trust all Now software, I tried it also with
- > absolutely no extensions other than D&D, and it still happened: I can't
- > drag anything off the desktop or onto a desktop item!
- >
- > This is on a (don't laugh!) accelerated SE, running 7.1 for lack of an
- > upgrade of Connectix' Compact Virtual for 7.5 compatibility.
- >
- > Anyone have any other ideas?
-
- You need an extension called the 'Dragging Enabler' which is on
- ftp.apple.com.
-
-
- /==============================\
- | Jeremy P. Howard | "Logic must take care of itself."
- | jhoward@ariel.unimelb.edu.au | Ludwig Wittgenstein
- \==============================/ Tractatus Logico-Philisophicus
- =========================================================================
- Date: Fri, 18 Nov 1994 10:06:14 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ronald Leenes <r.e.leenes@BSK.UTWENTE.NL>
- Subject: Eudora Announcer script (yet again)
-
- In reply to David Messina's question about our (Roel Vertegaal and mine)
- Eudora announcer the following.
- The trouble you run into is the fact that Eudora's scripting dictionary has
- changed in 2.1 (in comparison to 1.4 (freeware) and 2.0? commercial).
- We wrote the script for Eudora 1.4. It won't work with Eudora 2.1 without
- changes.
- As a matter of fact I've spend some time 'upgrading' the announcer to work
- with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
- have to admit I can't get it working properly.
-
- If you want to get it running you will indeed have to insert the following:
-
- tell application "Eudora 2.1"
- notify alias "theDisk:theFolder:Eudora Announcer 1.0" when mail arrives
- end tell
-
- as mentioned by
- David Lewis
-
- In the announcer you will find
- on notice (theNewMessages)
-
- that should be changed to:
- on notify theEvent theNewMessages
-
- or something. As said before, I can't get it running.
-
-
-
-
- ---
- Ronald E. Leenes University of Twente
- r.e.leenes@bsk.utwente.nl Dept. of Public Administration
- and Public Policy
- Phone: X-31 53 894231 P.O. Box 217, 7500 AE Enschede
- the Netherlands
- ---
- =========================================================================
- Date: Fri, 18 Nov 1994 06:24:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: buyer's remorse
- In-Reply-To: <199411180911.EAA25940@acme.freenet.columbus.oh.us>
-
- Thanks to everyone that mentioned it, but as I should have pointed out
- at the beginning of my original post I had already heeded all of the
- advice about updating drivers and doing a clean install. I installed 7.5
- in a new partition that had never had a system on it in its life.
-
- Yes, I have tried to reinstate about half of my extensions. Maybe there
- would be no problems without them. On the other hand, if I went back to my
- old system everything would be running fine, I could be doing all those
- things I wanted at once and not be spending my time trying to figure out
- just what else in the set-up doesn't work any more. Yet I haven't gone
- back to the old System yet, for some reason. I must be a victim of peer
- pressure. If all the most respectable people on the net think it's more
- stable, there must be _something_ to it.
- =========================================================================
- Date: Fri, 18 Nov 1994 07:39:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
- Subject: Re(3): Users, Groups, Program Linking
- In-Reply-To: <Added.Qin7_hW00UddRlvU4a@andrew.cmu.edu>
-
- >Speaking of which, does anyone know where I can reach Greg T. Quinn? The only
- >address he ever published was gtq1@cornell.edu, but that's a black hole. I've
- >been trying for months to send him a check, but where?
-
- Try this address:
-
- gregq@gordian.com
-
- -Kevin
- =========================================================================
- Date: Fri, 18 Nov 1994 09:26:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Users, Groups, Program Linking
-
- Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU (Kyraden) says:
- >>If it were bAsed on the RSA ("MacPGP") encryption scheme, methinks it would
- be quite difficult to compile and still be usable. Maybe you could use
- MacPGP 2.6ui which is scriptable to encrypt something and then transfer it,
- later decoding it, but that seems sort of tedious...<<
-
- Ummm....there's a MacPGP 2.6? Last I heard there was no PGP for the Mac above
- 2.3. Where do I get same? (Email preferred; AOL's ftp is still in the funky
- stage)
-
- _Deirdre
- =========================================================================
- Date: Fri, 18 Nov 1994 09:26:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: OSAX source??
-
- This is a good point. One of the stickiest and most persistent bugs (and one
- of the hardest to find/solve) in the last C++ project I worked on was one
- class deleting the current grafport that another class was using keeping as a
- saved grafport. In any case, before using anything grafport oriented, it's a
- good idea to check if there is one and that you have the right one.
-
- _Deirdre
-
- Mike.Alexander@UMICH.EDU (Mike Alexander) says:
- > Yes, but be careful. Depending on who is calling you, there may not be a
- > current GrafPort. It should be safe enough from an LDEF, but perhaps not
- > from an osax if it is called by some background process when the machine is
- > in some strange state. Osax's may be ok, but I've seen examples in other
- > code (XTND translators, for example) where they tried to use a non-existant
- > current GrafPort and crashed.
- =========================================================================
- Date: Fri, 18 Nov 1994 09:26:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: Grr...More Scripting from C issues
-
- Lawrence D'Oliveiro asks:
- >>Did you try calling OSAScriptError, to find out what the error was?
-
- Well, I was working on that. This is the second time I've had this gotcha
- (but the first time was two years ago, so it took me a while to find what
- happened last time) -- I set the SIZE flags, but the compiler re-set them,
- clobbering my values. AppleScript also seems to require the
- remoteHighLevelEvent flag being set, which I can't remember reading anywhere.
- I don't set it as a matter of course.
-
- I also had to change the modeFlags to include the canInteract.
-
- In any case, it does work now. Yay!
-
- _Deirdre
- =========================================================================
- Date: Fri, 18 Nov 1994 10:47:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: buyer's remorse
- In-Reply-To: <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" at Nov 18, 94 03:58:00 pm
-
- --Lawrence D'Oliveiro wrote:
- >
- >"Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
- >
- >>--Lawrence D'Oliveiro wrote:
- >>>
- >>>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
- >>
- >> As am I, since this is what I'm running on my 8100.
- >
- >I doubt it. Power Macs need at least System 7.1.2, and they all come with
- >Finder 7.1.4 already.
-
- True, but I was being a little less specific with the version
- numbers than you are. To me, System 7.1 encompases both 7.1.1 and 7.1.2
- because the really are the same overall system. I was also running 7.1.3
- and the scriptable Finder when my 8100 was still a Q800.
-
- -Hades
- =========================================================================
- Date: Fri, 18 Nov 1994 10:50:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: buyer's remorse
- In-Reply-To: <no.id> from "Jeremy Peter Howard" at Nov 18, 94 07:22:15 pm
-
- --Jeremy Peter Howard wrote:
- >
- >You need an extension called the 'Dragging Enabler' which is on
- >ftp.apple.com.
-
- Yup. And you can find it at this URL:
-
- ftp://ftp.apple.com/dts/mac/sys.soft/extensions/macintosh-drag-and-drop-1-1.hqx
-
- -Hades
- =========================================================================
- Date: Fri, 18 Nov 1994 17:05:07 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Magnus Olofsson <magnus.olofsson@GOT.WMDATA.SE>
- Subject: Re: buttons blinking
-
- >I took computer programming and slide rules between 5th and 6th grade. We
- >had a teletype with paper tape going to a mainframe downtown. I could read
- >the dots on the tape. Rubout was my friend.
- >
- >Now I occasionally play with single chip micros and I build circuits and
- >program in assembly (C is for wimps). An blinking lights are about the only
- >debugging tools available on a small single chip micro.
- >
- >I like blinking lights, they are my friend. :-)
- >
- >Kee
- >
- >_______________________________________________________________
- >Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
- >
- >
-
- I didn't know that Fred Flintstone was hooked up to Internet.
-
- MON
- =========================================================================
- Date: Fri, 18 Nov 1994 13:01:33 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Re: Listserv scripts on the Mac
-
- >Hello,
- >
- >Someone recently asked on the info-mac list about being able to provide
- >listserv email list management and processing on the Mac. While I haven't
- >seen anything to do this (at least in shareware), it occurred to me that
- >with the latest 1.0b8 version of MailShare, a freeware POP email server for
- >the mac, that this might be possible through some scripting, so I thought I
- >would run this by you and see if anyone has worked on this.
-
-
- I've done something similar. Basically I have an AppleScript that connects
- to MailShare through Eudora. The AppleScript then steps through the
- messages in the Eudora inBox, and takes in 'Subcribe" or "unsubcribe"
- messages and moves that data into/out of a FileMaker pro database. Then all
- the other messages in the Eudora Inbox are sent to each of the users in the
- FileMakerPro database.
-
- voila, mailing list on a Mac! I'd release it but I wrote it under
- contract....they may want to release it as shareware.......
-
-
- - bill
-
-
- | Bill Hutten - bhutten@fox.nstn.ns.ca
- | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6 (902) 453 2482
- | "I've been your dog ever since I knowed your name." - Son House
- =========================================================================
- Date: Fri, 18 Nov 1994 08:59:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: Re: buttons blinking
-
- Aaaarrrgggg :-o Sorry this was supposed to just go to Jon Pugh. I used one
- of his postings to MacScrpt to get his email address. Obviously I replied
- to the list rather than to Jon. It was late night. Sorry about that folks.
- Kee Nethery
- =========================================================================
- Date: Fri, 18 Nov 1994 09:04:55 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
- Subject: HyperCard (was- Kee's show.
-
- Subject: Time:8:55 AM
- OFFICE MEMO HyperCard (was: Kee's show...) Date:11/18/94
-
- Lawrence "Think of it as software plasticine" D'Oliveiro sez:
- > HyperCard doesn't get much respect these days...And it still remains
- > one of the most hackable tools around...Hacking HyperCard is an activity
- with a
- > long, well-understood tradition.
-
- I hope Apple realizes that. I have used HyperCard since it was in Beta
- testing, and while I wouldn't want to try and teach someone how to use
- HyperCard today, I think there are a whole load of people like me who secretly
- _love_ HyperCard. Recently it seems if you mention that you use HyperCard,
- people snicker, and look down their nose at you.
-
- When was the last time you got to feel so comfortable with a piece of
- software? There is not another application on any of my hard disks that I
- feel as "at home" with as HyperCard. The problem is that this "comfortable"
- feeling is really hard to quantify. I just hope Apple takes the effort to
- quantify it so that the bean-counters don't get to my beloved HyperCard.
-
- - Christian (stepping off of soapbox) Jacobsen
- jacobsen@george.arc.nasa.gov
-
- ** These opinions are MINEMINEMINEMINE!!! (But I will sell 'em for cheap!) **
- =========================================================================
- Date: Fri, 18 Nov 1994 09:26:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jerry Ballard <gqb@FARALLON.COM>
- Subject: Re: HyperCard (was- Kee's show.
-
- >>I think there are a whole load of people like me who secretly
- >>_love_ HyperCard.
-
- I make no secrets about it. If I have anything that needs to be done FAST,
- whether it involves MS Mail, text parsing, timers, flat-file DB work... the
- list is endless, I immediately turn to HCard.
- IMHO, its still THE finest end user development environment ever written.
- I still maintain that AppleScript should have been implemented as a language
- extension to HCard, with the option to save 'code-only' apps & scripts.
-
- But that water has long since passed under the bridge.
- =========================================================================
- Date: Fri, 18 Nov 1994 09:43:50 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Adams.Richard" <adams#d#richard@SSDGWY.MDC.COM>
- Subject: XCMD Shell won't launch
-
- I can't get XCMD Shell v 0.1b3 to launch from AppleScript. Try as I might, I
- just get a timeout error. I sent an email to the author (Sean Hummel) and
- have gotten no reply. Also tried getting to his www software page, but it
- seems to be gone or protected.
-
- Anyone had any luck getting this to work?
-
- Richard Adams
- MDAW ISSA
- =========================================================================
- Date: Fri, 18 Nov 1994 12:46:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Duffield <duffiem@AA.WL.COM>
- Subject: Re: HyperCard (was- Kee's show.
- In-Reply-To: Jerry Ballard <gqb@FARALLON.COM> "Re: HyperCard (was- Kee's
- show." (Nov 18, 9:26am)
-
- On Nov 18, 9:26am, Jerry Ballard wrote:
- > Subject: Re: HyperCard (was- Kee's show.
- > >>I think there are a whole load of people like me who secretly
- > >>_love_ HyperCard.
- >
- > I make no secrets about it. If I have anything that needs to be done FAST,
- > whether it involves MS Mail, text parsing, timers, flat-file DB work... the
- > list is endless, I immediately turn to HCard.
- > IMHO, its still THE finest end user development environment ever written.
- > I still maintain that AppleScript should have been implemented as a language
- > extension to HCard, with the option to save 'code-only' apps & scripts.
- >
- > But that water has long since passed under the bridge.
- >-- End of excerpt from Jerry Ballard
-
- I once developed a HyperCard stack to manage users on a UNIX system. The
- stack generated a csh script that all I had to do was move the UNIX box
- and execute as root. The hardcore UNIX types here gave me a hard time, it took
- me a fraction of the time to generate a set of accounts that it took them.
-
- Today, if I still used the application, I would probably write an applescript
- to generate the csh script, have it FTPed to the UNIX system, and issue an
- rexec to execute it from afar. I wouldn't even have to interactively log into
- the box. I bet Sun Microsystems would _love_ to hear that I was managing
- their workstations with HyperCard.
-
- (I had to make this story relevent to AppleScript somehow)
-
- Mark
-
- --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark J. Duffield | duffiem@aa.wl.com
- Sr. Systems Specialist |
- Preclinical Scientific Computing | MIME Spoken here.
- Parke Davis Pharmaceutical Research |
- Ann Arbor, MI 48105 |
- =========================================================================
- Date: Fri, 18 Nov 1994 13:01:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: more Eudora
-
- On 11/17/94, Dan Hinckley opined:
-
- > body selected . Anyone tell me whether/how AS can be used to move the
- > insertion point to the top or bottom of the quoted msg body? I haven't
-
- I don't think it can be done yet. I do not know if it's being worked on,
- tho I suspect it is. Eudora doesn't support the Object Model yet, so you
- can't use the usual methods of moving insertion points around in windows.
-
- A workaround is to copy the body of the message and use a text editor with
- robust AE support to edit it, then copy it back.
-
- > 2) Anyone suggest how to test if a mailbox is 'open'? 'Open' doesn't appear
- > to be a property of a mailbox. FileBusy doesn't seem to help either...
-
- As far as I know there's no way to do this. (I discussed it with the
- author of MailConverter; we never did come up with a good workaround in
- 2.x.) I don't expect it'll be supported anytime soon, either. I hope that
- Steve will support a command to make a new mail message from a text file
- (MailConverter and NewsWatcher both want to be able to do this) or (my
- preference) from a collection of "headers" and a "body," both of which
- could presumably be files.
-
- Telling Eudora to make a message from parts makes sense, trying to figure
- out if it's using a file so you can mess with it yourself doesn't. (I DO
- wish Eudora would flag the mailboxes busy so they couldn't be modified
- while it was running.
-
- I have no clue what Steve's working on right now. Last thing to come down
- the pipe was some support for PGP (a HI nightmare if ever there was one)
- and some pretty cool changes to the Ph support. But better scripting
- support is definitely on the list.
-
- ~ Kiran <groo@netcom.com>
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Fri, 18 Nov 1994 13:01:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: buyer's remorse
-
- On 11/17/94, Kyraden opined:
-
- > say you were getting stack crawls for apps that weren't running...? Now
- > that is odd... How did you decide it was RD's fault?
-
- Because I'd installed the patch that puts an indicator in the corner of the
- screen when RD is working, and it would blink furiously and grind away at
- the drive for about 30 seconds before dropping into MacsBug. Whatever was
- going on seemed to have *something* to do with RD, and particularly with
- disk storage.
-
- When I added another 4M of real RAM the problems went from hourly or so to
- very rare, and when I added the 040 VM update they seem to have
- disappeared.
-
- I like RD, I just wish I had the option to turn the disk storage off.
-
- ~ Kiran
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Fri, 18 Nov 1994 13:11:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jim Melton <m8j@COSMAIL1.CTD.ORNL.GOV>
- Subject: Re: Eudora Announcer script (yet again)
-
- >In reply to David Messina's question about our (Roel Vertegaal and mine)
- >Eudora announcer the following.
-
- <stuff deleted>
-
- >As a matter of fact I've spend some time 'upgrading' the announcer to work
- >with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
- >have to admit I can't get it working properly.
-
- <more stuff deleted>
-
- >or something. As said before, I can't get it running.
-
-
- OK, folks, here is a question from an AppleScript (very)newbie: Now that I
- have Eudora 2.1 trying to "notify" an applet that doesn't work... how do I
- make the thing _stop_ trying!?
-
- When I drop Eudora Announcer 1.0 onto Eudora Notify Controller, it first
- asks me if I want to turn notification "On" or "Off". If I select "On", it
- then proceeds to tell me that "Notification already appears to be on". If
- I select "Off", it then tells me that "Notification already appears to be
- off". What gives?
-
- Also, where does Eudora keep track of this kind of AppleScript related
- stuff? I tried trashing Eudora and the Eudora Settings file. No luck.
-
- Any help would be greatly appreciated!
-
- Jim
- =========================================================================
- Date: Fri, 18 Nov 1994 11:00:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Eudora Announcer script (yet again)
-
- >>In reply to David Messina's question about our (Roel Vertegaal and mine)
- >>Eudora announcer the following.
- >
- ><stuff deleted>
- >
- >>As a matter of fact I've spend some time 'upgrading' the announcer to work
- >>with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
- >>have to admit I can't get it working properly.
- >
- ><more stuff deleted>
- >
- >>or something. As said before, I can't get it running.
- >
- >
- >OK, folks, here is a question from an AppleScript (very)newbie: Now that I
- >have Eudora 2.1 trying to "notify" an applet that doesn't work... how do I
- >make the thing _stop_ trying!?
-
- Execute this from the script editor:
-
- tell application "Eudora 2.1"
- stop notifying alias "theDisk:theFolder:Eudora Announcer" when mail arrives
- end tell
-
- As with starting, you only have to do it once.
-
- >Also, where does Eudora keep track of this kind of AppleScript related
- >stuff? I tried trashing Eudora and the Eudora Settings file. No luck.
- >
- It's in the Eudora Settings file. There's an 'eNot' resource whose name is
- a concatenation of the creator of the application it's to notify and the
- event (in your case 'wArv' for mail arrives.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Fri, 18 Nov 1994 13:06:51 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Hiner <hiner@MAIL.UTEXAS.EDU>
- Subject: Re: more Eudora
-
- >As far as I know there's no way to do this. (I discussed it with the
- >author of MailConverter; we never did come up with a good workaround in
- >2.x.) I don't expect it'll be supported anytime soon, either. I hope that
- >Steve will support a command to make a new mail message from a text file
- >(MailConverter and NewsWatcher both want to be able to do this) or (my
- >preference) from a collection of "headers" and a "body," both of which
- >could presumably be files.
- >
- >Telling Eudora to make a message from parts makes sense, trying to figure
- >out if it's using a file so you can mess with it yourself doesn't. (I DO
- >wish Eudora would flag the mailboxes busy so they couldn't be modified
- >while it was running.
- >
-
-
- Couldn't you use Atul Butte's TCP/IP osax to send messages directly? It
- appears from his example that this should be possible to create messages
- from parts and use smtp to send the message along.
-
- Also Mailshare is supposed to be fully scriptable someday and as it handles
- smtp itself it would also be a logical app to handle mailing duties.
-
- Greg
- =========================================================================
- Date: Fri, 18 Nov 1994 13:42:50 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ken Fox <kjfox@MKE.AB.COM>
- Subject: MacHTTP and encoded data
-
- Hi,
- I'm using MacHTTP and am getting arguments from
- a form using POST. The data is encoded upon
- return. I pass the data directly into either
- AppleScript or HyperCard. Problem is that I
- need the text data unencoded and don't really
- want to write a function to do that myself if
- an alternative exists.
- Is there any easy way to get the data to the
- target application without the encoding.
-
- Ken
-
- ________________________________________________________________________
- Kenneth J. Fox | E-mail: kjfox@mke.ab.com (pref)
- Allen-Bradley Company | Phone: 414-382-3287 (V) 414-382-2742 (F)
- Rockwell Automation | Pager: 414-256-9702
- Milwaukee, WI |
- =========================================================================
- Date: Fri, 18 Nov 1994 13:46:13 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ken Fox <kjfox@MKE.AB.COM>
- Subject: Re: Scripting MS Mail
-
- >I need to control MS Mail via AppleScript.
- >
- >Can anyone give any suggestions on how to do this?
- >
- As far as I know, there is only one API into MS Mail.
- That is a HyperCard XFCN. You can, and I have, blended
- HyperCard since it is scriptable with AppleScripts to
- have HyperTalk get the mail from MS Mail and then either
- process it within HyperCard or pass it to some AppleScript
- application.
-
- Good luck,
- Ken
-
-
- ________________________________________________________________________
- Kenneth J. Fox | E-mail: kjfox@mke.ab.com (pref)
- Allen-Bradley Company | Phone: 414-382-3287 (V) 414-382-2742 (F)
- Rockwell Automation | Pager: 414-256-9702
- Milwaukee, WI |
- =========================================================================
- Date: Fri, 18 Nov 1994 12:44:44 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FMP AE open with password
-
- >I finaly got it, mayby it an FAQ but here it is anyway
- >
- >Thit is the way to open a file from Userland Frontier with a password included
- >
- >on open_pw (obj , password)
- > return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
- >'pPAS',password))}
-
- The above is correct (and is included the open () verb in the newer "glue"
- for FileMaker which is on CompuServe (if it is not on gaea it will be,
- probably early next week). The new glue requires Frontier 3.0.
-
- You will have much better success if you have FileMaker the frontmost
- application before doing any open (whether or not a password is needed).
- FileMaker might have to complain about a bad password, or ask for one, and
- doesn't do well when Frontier sends it an open event while it (FileMaker)
- is in the background.
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Fri, 18 Nov 1994 12:44:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Maybe Applescript Yes
-
- >I continued to fiddle with this script, trying another mail server that is
- >also a novell server, and finally got an error message that made more
- >sense. It says:
- >
- >Error: Can't get <<class lhst>> of {class:stream status, bytes waiting:0,
- >connection status:connected, local host:"138.86.11.60",local
- >port:1569,remote host:"138.86.1.10",remote port:25}. -1728
- >
- >First off, -1728 is not a Mac error according to easy errors 1.1. Next,
- >those parameters are the very params in the dictionary of the TCP/IP OSAX
- >under class:stream status. I was getting more excited by the minute (this
- >is my first real functional project in scripting).
-
- If Easy Errors doesn't include -1728, that means Easy Errors is
- (considerably) out of date. -1728 is errAENoSuchObject, described in
- Inside Mac: IAC as
-
- "A run-time resolution error, for example: object specifier record asked
- for the third element, but there are only two."
-
- >
- >So I'm left with this question. What is the <<class lhst>>? To what does
- >that refer?
-
- Impossible to say what it refers to, without knowledge of the application.
- What it is is easy, but not interesting: it's an AE record keyword
- ('lhst'). And there's nothing in a currently available dictionary which
- describes it, so it is shown in the generic form. But it looks like it
- should be the "local host" item ['lhst' is a rational choice for that
- keyword], so it's not clear why it's unknown when the error is reported.
-
- >Any thoughts are appreciated.
- Unfortunately, on this one I can only offer thoughts, not an answer.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 18 Nov 1994 12:45:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Character mappings used here?
-
- >> It doesn't compile because you haven't use the chevron characers.
- >> To create the chevron characters =3DAB=3DBB, use option-\ and shift-optio=
- n-\.
- >
- >What message decoding option will allow me to see the special characters us=
- ed
- >by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
- >gateway with the default body text translation, namely: RFC 822->987 USA.
-
- There is some command you send to the listserv at Dartmouth which tells it
- to include the header in your message, when it sends it out, which alerts
- mailers to expect the quoted-printable encoding stuff. Unfortunately, I
- forget *what* command. Last I knew, that still left digest readers with
- the encoded characters, which is why I still include a glossary (when I
- remember). As in
- =ABclass foo =BB
-
- --John (=AB is left chevron, =BB is right chevron)
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 18 Nov 1994 12:45:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: audio CD and GTQLib
-
- >Sorry to double post, but I just remembered the other possible problem. One
- >of the ifs is an eject command and as many of you may know, if you tartup
- >with a CD in and have filesharing on, you cannot eject the disk. When this
- >happens, I get a nice error telling me "File busy", which is fine for me,
- >but it also puts up the "OK" and "Edit" buttons. I will at some point be
- >giving this little applet away to friends who are not scripters, and do not
- >have the SE. How can I put an "on error" type of dialog instead of this
- >built in one?
-
- try
- --some stuff which might fail
- on error
- --do something about the failure
- end try (just to confuse matters, that can also be end error!)
-
- There are several parameters you can tack onto the on error line: you can
- get the error number, error text if the app provided some, the object
- involved with the error (if provided by the app), and the results of the
- event up to the error (if provided by the app). The partial results are
- nice if you pass in a list, and there is a problem with the 10th item in
- the list. You can also see what was asked for in a failed coercion attempt
- (if the app provides it).
-
-
- on error errorText number errorCode from offendingObject partial result
- resultSoFar to expectedType
-
- Your error handling can fix things up, post a more suitable message, do
- something else entirely (like adding an error report to a log), trigger a
- different error (using the error command), or .... . It can also be left
- out, in which case the error is silently ignored.
-
- See the AppleScript Language Guide.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 18 Nov 1994 12:45:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
-
- >>Does anyone know of an osax that allows you to do 60 minutes
- >>of work in 30 minutes?
- >
- >I've been writing one, but it always seems to be 2 weeks away from working.
-
- When I arrived at the US Army Electronic Proving Ground, Fort Huachuca
- (AZ), there was a major item due in for testing in about 6 months. The
- group (not mine) responsible for the testing was busily planning for the
- test.
-
- 21 months later, when I emerged from the Army (still at Ft Huachuca), that
- test item was due in for testing in 6 months. And the responsible group
- was busily planning for the test.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 18 Nov 1994 17:05:13 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re: HyperCard (was- Kee's show.
-
- I'm also a HyperCard fan, but it runs so slow on my PowerMac that I've
- transferred most of the stuff I used to use HyperCard for to Filemaker.
- Filemaker's slow too, but it's not painfully slow.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- ultimate@mail.icon.net
-
- ------ From: Macintosh Scripting Systems, Fri, Nov 18, 1994 ------
-
- Recently it seems if you mention that you use HyperCard,
- people snicker, and look down their nose at you.
- =========================================================================
- Date: Fri, 18 Nov 1994 19:16:39 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Messina <messina@MCS.COM>
- Subject: Re: Character mappings used here?
-
- The possible commands one can send to the listserv regarding headers:
-
- SET FULLhdr or FULLBsmtp -> "Full" mail headers
- IETFhdr -> Internet-style headers
- SHORThdr or SHORTBsmtp -> Short (default) headers
- DUALhdr -> Dual headers, useful with PC
- or Mac mail programs
-
- For a complete list of options you can set for this and other lists, send
- the message: INFO REFCARD
-
-
-
-
- >>> It doesn't compile because you haven't use the chevron characers.
- >>> To create the chevron characters =3DAB=3DBB, use option-\ and shift-optio=
- >n-\.
- >>
- >>What message decoding option will allow me to see the special characters us=
- >ed
- >>by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
- >>gateway with the default body text translation, namely: RFC 822->987 USA.
- >
- >There is some command you send to the listserv at Dartmouth which tells it
- >to include the header in your message, when it sends it out, which alerts
- >mailers to expect the quoted-printable encoding stuff. Unfortunately, I
- >forget *what* command. Last I knew, that still left digest readers with
- >the encoded characters, which is why I still include a glossary (when I
- >remember). As in
- > =ABclass foo =BB
- >
- > --John (=AB is left chevron, =BB is right chevron)
-
- --
-
- David Messina
- messina@mcs.com
- =========================================================================
- Date: Fri, 18 Nov 1994 17:19:44 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Script launching on application quitting?
-
- --part_AAF292B0000A98EB00000006
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- I heard there was an extension or something that would automatically launch a
- script whenever an application was quit. Does anyone know what this is and
- where I can get it?
-
- Thanks,
-
- Greg
-
- --part_AAF292B0000A98EB00000006
- Content-Type: Text/Plain; charset=US-ASCII
- Content-Disposition: Inline
-
- __________________________________________________________________________
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- --part_AAF292B0000A98EB00000006--
- =========================================================================
- Date: Fri, 18 Nov 1994 22:34:53 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Re: buyer's remorse
-
- Barry and MacScripters:
-
- On Thu, 17 Nov 1994 Barry Chern <bchern@FREENET.COLUMBUS.OH.US> said:
- >Now that I've been struggling to live with 7.5 for awhile, I feel I made a
- >bad decision. If I'd bought the Finder thingee, I would have gotten some
- >...
- >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
- >the moment, aside from the pretty little desktop pattern I doodled out
-
- Without a doubt, the Scriptable Finder is worth the price of System 7.5!
- However, a bunch of people (me included) got burned early on, since the
- regular installation of System 7.5 is probably *not* the way to go. Instead
- you want to do a "clean install."
-
- Here's my story: I first installed 7.5 about a month-and-a-half ago (the
- regular install). I had all sorts of problems with menus, the desktop,
- Finder freezes, and so on. I tried to "7.1-ify" it, as you describe, and
- that didn't work, either.
-
- Soon thereafter, I had the misfortune (sigh) to have a hard drive crash
- (NOT related to System 7.5 -- by the way, NEVER kick your hard drive at any
- time, especially at startup!) The drive was a new one from APS, and they
- cheerfully honored the warranty. Since reinstalling 7.5 on this newly
- formatted disk, I have never looked back. If you need instructions for a
- "clean install," feel free to e-mail me.
-
- Remember, you can fully "back-customize" 7.5 to the point it largely
- resembles 7.1 (use discretion). In fact the only visible difference on my
- own PowerBook is the little question mark in the menu bar where the balloon
- used to be.
-
- Keep up the good work,
- Clint (who, once he went Mac, never looked back)
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Sat, 19 Nov 1994 00:00:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Re: buyer's remorse
- In-Reply-To: <v01510200aaf318dfb81f@[128.112.65.217]>
-
- On Fri, 18 Nov 1994, Clinton MacDonald wrote:
-
- > Barry and MacScripters:
- >
- ...>
- > Without a doubt, the Scriptable Finder is worth the price of System 7.5!
- > However, a bunch of people (me included) got burned early on, since the
- > regular installation of System 7.5 is probably *not* the way to go. Instead
- > you want to do a "clean install."
- >
-
- I did that in the first place.
-
- > Here's my story: I first installed 7.5 about a month-and-a-half ago (the
- > regular install). I had all sorts of problems with menus, the desktop,
- > Finder freezes, and so on. I tried to "7.1-ify" it, as you describe, and
- > that didn't work, either.
-
- No, I tried to "scriptable-finder-ify" 7.1
- =========================================================================
- Date: Fri, 18 Nov 1994 23:05:24 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <jme@JOSAIAH.SEWANEE.EDU>
- Subject: Re: buyer's remorse
-
- > Remember, you can fully "back-customize" 7.5 to the point it largely
- >resembles 7.1 (use discretion). In fact the only visible difference on my
- >own PowerBook is the little question mark in the menu bar where the balloon
- >used to be.
- >
-
-
- I just have one question here:
- What is the point of getting 7,5 if you "back cuistomize" it to resemble 7.1??
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Sat, 19 Nov 1994 01:15:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Re: Buyer's Remorse
- In-Reply-To: <199411180911.EAA25940@acme.freenet.columbus.oh.us>
-
- Lawrence D'Oliveiro wrote, back when I meant to reply originally:
-
- >>What exactly happened when you tried moving stuff to/from the desktop?
-
- As best as I can remember, the icon just snapped right back to where it
- started. I didn't notice this happening with dragging between other
- folders. But, I didn't mess with it for long.
-
- So, do we have any concensus yet on whether there is enough difference
- between Finder 7.1.3 and 7.1.4 to make it not work? (I'm not sure I want
- to be the one to experiment again, after getting that one alarming
- message. Did anyone see any merit in those prophesies of doom?)
-
- B.
- =========================================================================
- Date: Sat, 19 Nov 1994 17:31:47 +0900
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Seiji Hayashi <g44402a@NUCC.CC.NAGOYA-U.AC.JP>
- Subject: [Q}Applescript FAQs
-
- Hello netters,
- I am a beginner with respect to Applescript and AppleEvent, so I am
- seeking for Applescript (AppleEvent) FAQs or related useful documents on
- aFTP, Gopher, WWW, and WAIS. I would appreciate if anyone let me know URLs
- for them.
-
- Thanks in advance.
-
- --------------------------------------------
- Seiji Hayashi (g44402a@nucc.cc.nagoya-u.ac.jp)
- Department of Earth and Planetary Sciences
- School of Science,Nagoya University
- Furo-cho Chikusa-ku
- Nagoya 464-01 Japan
- --------------------------------------------
- =========================================================================
- Date: Sat, 19 Nov 1994 01:42:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matthew Frederick <connote@INDIRECT.COM>
- Subject: Re: BeyondMenus XTension
-
- >> > download Acrobyte's new BeyondMenus XTension - among
-
- > Does anyone know where this Xtension is available over FTP?
-
- It's available at info-mac.
-
- Matthew
-
- "Believe nothing, no matter where you read it, or who said it --
- even if I have said it -- unless it agrees with your own reason
- and your common sense. --The Buddha
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
- =========================================================================
- Date: Sat, 19 Nov 1994 11:39:28 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tilmann Robbe <robbe@SIBM2.RUF.UNI-FREIBURG.DE>
- Subject: Re: FMP AE open with password
-
- >I finaly got it, mayby it an FAQ but here it is anyway
- >
- >Thit is the way to open a file from Userland Frontier with a password
- included
- >
- >on open_pw (obj , password)
- > return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
- >'pPAS',password))}
-
- Can I do the same or something similar with AppleScript, or does it only
- work with Frontier?
-
- Tilmann
-
- ---------------------------------------------------------------------------
- * Tilmann Robbe * E-Mail:robbe@sibm2.ruf.uni-freiburg.de *
- * Systemadministrator * SnailMail: KG I, Werthmannplatz *
- * Seminar fuer Alte Geschichte * D-79098 Freiburg *
- * Universitaet Freiburg/Brsg. * Phone/Fax: 0049 - (0)761 - 273813 *
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Sat, 19 Nov 1994 08:31:59 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: NDN: Script launching on application quitting?
-
- Sorry. Your message could not be delivered:
-
- Message contained no valid addresses.
- =========================================================================
- Date: Sat, 19 Nov 1994 13:00:54 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
-
- >>>Does anyone know of an osax that allows you to do 60 minutes
- >>>of work in 30 minutes?
- >>
- >>I've been writing one, but it always seems to be 2 weeks away from working.
- >
- >When I arrived at the US Army Electronic Proving Ground, Fort Huachuca
- >(AZ), there was a major item due in for testing in about 6 months. The
- >group (not mine) responsible for the testing was busily planning for the
- >test.
- >
- >21 months later, when I emerged from the Army (still at Ft Huachuca), that
- >test item was due in for testing in 6 months. And the responsible group
- >was busily planning for the test.
- >
- > --John
-
- So that osax is still 6 months away from being de-classified, right?
- =========================================================================
- Date: Sat, 19 Nov 1994 07:16:45 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
- Subject: MacHTTP and encoded data
-
- >I'm using MacHTTP and am getting arguments from
- >a form using POST. The data is encoded upon
- >return. I pass the data directly into either
- >AppleScript or HyperCard. Problem is that I
- >need the text data unencoded and don't really
- >want to write a function to do that myself if
- >an alternative exists.
- >Is there any easy way to get the data to the
- >target application without the encoding.
-
- There are several OSAX functions available for encoding and decoding URLs,
- as well as taking apart form arguments. As usual, check the MacHTTP Home
- page. These OSAXen are on the Tools page off the main menu.
-
- http://www.uth.tmc.edu/mac_info/machttp_info.html
-
- -----------------------------------------------------------------------
- Chuck Shotton
- cshotton@oac.hsc.uth.tmc.edu "I am NOT here."
- =========================================================================
- Date: Sat, 19 Nov 1994 17:33:45 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: Script launching on application quitting?
-
- > I heard there was an extension or something that would automatically launch
- a
- > script whenever an application was quit. Does anyone know what this is and
- > where I can get it?
-
- This probably isn't what you want, but you could just write a stay-open
- script application to do this and leave it running all the time. Have the
- script get a list of processes every X seconds and when it finds an
- application that it is supposed to watch, set a flag that the app is running.
- When the app quits, take whatever actions you want and clear the flag. You
- could keep a list of lists, where each of the inner lists had three items:
- the name of the app to watch for, the action to be executed when the app
- quits (could even be a script object), and then your flag. Each time through
- your on idle handler, scan through the list.
-
- -wayne
- =========================================================================
- Date: Sat, 19 Nov 1994 12:17:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: Script launching on application quitting?
-
- At 11:33 AM 19.11.94, WalrathW wrote:
- >> I heard there was an extension or something that would automatically launch
- >a
- >> script whenever an application was quit. Does anyone know what this is and
- >> where I can get it?
- >
-
- You might be looking for ScriptSynch. From the Read Me file:
-
- "In scripter lingo, ScriptSynch is a system extension that can provide
- functionality resembling "attachability" to your applications. To mortals,
- this means ScriptSynch can automatically launch applications, open files,
- or run scripts when specific applications launch or quit. This is useful
- for running a "startup script" whenever an application loads, attaching one
- application to another so they launch and quit at the same time (Eudora and
- Nuntius, for example), or tracking application usage through scripting. A
- little contrary to its name, ScriptSynch works fine without AppleScript,
- although it works best in conjunction with it."
-
- Should be available on Gaea...
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- Web: http://access.digex.net/~spud
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Sat, 19 Nov 1994 10:57:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: HyperCard
-
- Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV> wrote:
- >
- >Lawrence "Think of it as software plasticine" D'Oliveiro sez:
- > > HyperCard doesn't get much respect these days...And it still remains
- > > one of the most hackable tools around...Hacking HyperCard is an activity
- > > with a long, well-understood tradition.
- >
- >I hope Apple realizes that. I have used HyperCard since it was in Beta
- >testing, and while I wouldn't want to try and teach someone how to use
- >HyperCard today, I think there are a whole load of people like me who secretly
- >_love_ HyperCard. Recently it seems if you mention that you use HyperCard,
- >people snicker, and look down their nose at you.
-
- Hypercard is THE best selling piece of software Apple produces. It gets no
- respect and precious little support outside of the Hypercard team, which
- isn't large. However, the rumor mill says that a native version is in the
- works, so there's hope for the future. I can't wait. I use Hypercard all
- the time. It's the place where I keep and access all my data. You know,
- the reason you have a computer? In addition, it is the place to write
- those annoying little things that don't need a complicated UI, but where
- you want the answer right now.
-
- I did a rot13, a phone number namer (all the letters a phone number
- spells), the amount of vacation time I have accumulated, the amount of time
- until my next vacation, the age of everyone I care about (13 days until
- Jordan's 2nd birthday, then the fun begins ;) and lots more. Versatility
- is the key.
-
- Jerry Ballard <gqb@FARALLON.COM> wrote:
- >I still maintain that AppleScript should have been implemented as a language
- >extension to HCard, with the option to save 'code-only' apps & scripts.
-
- It comes darn close, and can actually be done with an osax from Jon's Commands.
-
- One of Hypercard's biggest problems regarding AppleScript is the 30K limit
- on AS object code. Since it stores the compiled code in the script area,
- it inherits this size limitation. In addition, it doesn't support saving
- run-only code.
-
- The "run script resource" command in Jon's Commands allows you to save your
- AppleScripts as resources in your stack. They are then freed from the
- limitations that the stack format imposes on Hypercard. You can store them
- run-only and any size.
-
- All you have to do is write your code in your favorite script editor. Save
- it however you like. Open the resulting script file with ResEdit (or
- whatever). Copy the 'scpt' resource into your stack. Add a name and/or
- change the number. Put a "run script resource" command in your
- stack/card/field/button script and away you go.
-
- Jon
- =========================================================================
- Date: Sat, 19 Nov 1994 11:07:14 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Allan R. Crump Jr" <jhhw@CRL.COM>
- Subject: OSAX Source
-
- Per my original message that started this whole mess:
-
- If my problem with THEPORT not being defined is due to not saving/setting
- the A4 area, why isn't this mentioned in the FLASH osax sample (which I
- patterned my pascal version on) in Apple's 'Scripting Additions Guide'?
-
- Additionally, I have taken other 'c' osaxen source, reworked some of the
- code so they were pascal and in every other case I get a THEPORT not
- defined error.
-
- I guess no one works in pascal anymore.
- =========================================================================
- Date: Sat, 19 Nov 1994 11:53:23 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Wickens <mark@EVERYWARE.COM>
- Organization: EveryWare Development Corp.
- Subject: AppleScript Speed
-
- Are there any general guidelines for improving AppleScript performance?
-
- I have written an application with FaceSpan and while some operations are
- admirably fast, others are painfully slow. I plan to do an analyis of this
- myself, of course, but before I do, are there any general things I should know?
-
- I also recently wrote a droplet application and was very unimpressed that it
- took over 10 seconds to get to the open handler from the time something was
- dragged to it, and a similar amount of time from my last line of code and
- quitting to the Finder. By experimenting, I discovered that saving the app as
- Run-Only cut these times quite a bit. This is the kind of tip I'm looking for
- (though the droplet is still slower than I think it should be).
-
- On another performance issue, is there anything that can be done about the
- outrageous amount of time taken to parse/format/compile a script? I find myself
- delaying saves because of this. Do I just have to live with it (or get a PPC)?
-
- I tried the FAQ but couldn't find anything. Any ideas or pointers to books/FAQs
- will be appreciated.
-
- Thanks,
- Mark
- <mark@everyware.com>
- =========================================================================
- Date: Sat, 19 Nov 1994 13:36:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Kee's show and tell & FaceSpan
-
- >FaceSpan is a fabulous tool for mocking up user interfaces for "real"
- >software. I've used it to design several C++ applications, and it's come
- >through for me as an efficient UI communication tool. Everyone gets the
- >picture, before you start coding. The AppleScript support is just a means to
- >this end. FaceSpan apps are of no value as software.
- >
- >I don't know who got it into their head that everyone who used AppleScript
- >would need to use FaceSpan, but I'm sorry to say they were wrong. It's just
- >hurting a great product, because people are missing the point of it. SDU
- >should take it back, hike the price, and reposition it as the premier UI
- >design tool. Right now, it's just wasting our time.
-
- I disagree entirely. I think the only problem was 1.0 being shipped with
- the memry leak bug, but the concept of including FaceSpan is excellent.
-
- Sure, folks that read this digest don't mind trips to Script Editor to
- tweak a script, but what about everyone else? With FaceSpan I can provide
- *very* useful utilities that previously would have required C++ code in
- literally *hours*.
-
- We've taken our Eudora e-mail forwarding script - where every parameter
- such as what fields t include, who to frward to, etc, is a property - and
- made it useful for non-gearheads by putting a FaceSpan UI on top off it.
-
- FaceSpan is the first rapid-development environment I have used that I
- would actually use commercially.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Sat, 19 Nov 1994 13:36:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Kee's show and tell
-
- >>What exactly did you find troublesome about FaceSpan?
- >
- >Had to create a prefs file to store configuration data into. The ability of
- >HyperCard to remember stuff is quite nice. I needed to do a bunch of text
- >processing and I personally found the combination of AppleScript and no
- >place to store variables just too much. But the real kicker was what seemed
- >to be some sort of memory leak. It was a long time ago (in finger strokes)
- >that I attempted to bend FaceSpan to do my bidding. The creation cycle,
- >seemed slow and the debugging was non-existent.
-
- You don't have to have a prefs file, you can use properties.
-
- As to the leak, get version 1.0.1.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Sat, 19 Nov 1994 17:28:22 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: [Q}Applescript FAQs
-
- >Hello netters,
- > I am a beginner with respect to Applescript and AppleEvent, so I am
- >seeking for Applescript (AppleEvent) FAQs or related useful documents on
- >aFTP, Gopher, WWW, and WAIS. I would appreciate if anyone let me know URLs
- >for them.
-
- In case you haven't already received a thousand responses, you can get all
- of that stuff via FTP at:
-
- gaea.kgs.ukans.edu:applescript/
-
- Good Luck!
-
- Matthew
-
- "Believe nothing, no matter where you read it, or who said it --
- even if I have said it -- unless it agrees with your own reason
- and your common sense. --The Buddha
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
- =========================================================================
- Date: Sat, 19 Nov 1994 17:33:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Matthew Frederick <mfred@AMUG.ORG>
- Subject: Re: Kee's show and tell
-
- >>>What exactly did you find troublesome about FaceSpan?
- >>
- >>place to store variables just too much. But the real kicker was what seemed
- >>to be some sort of memory leak. It was a long time ago (in finger strokes)
- >
- >As to the leak, get version 1.0.1.
-
- How do I get that? I've had version 1.0 for ages, but haven't heard hide
- nor hair or a 1.0.1...
-
- Matthew
-
- "Believe nothing, no matter where you read it, or who said it --
- even if I have said it -- unless it agrees with your own reason
- and your common sense. --The Buddha
- Matthew Frederick, Phoenix, Arizona, USA (mfred@amug.org)
- =========================================================================
- Date: Sat, 19 Nov 1994 21:48:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
- Subject: Re: Dynamic Terminologies
-
- Jon Pugh <jonpugh@NETCOM.COM> writes:
-
- >>Also, as we were discussing a few days ago, Quark is the only app I know
- which supports dynamic terminologies, but I have yet to see an extension
- which has a dictionary.<<
-
- Howdy, John -
-
- There are several XTensions that I know of which have dictionaries; Em
- Software's XData, alap's Script Glue XT, some of the Scitex XTensions,
- and our own BeyondMeasure XTension. I'm sure that there are others,
- especially considering the fact that I've probably only come into contact
- with 1% of the available XTensions on the market.
-
- I agree that the behavior is annoying, though; I think that Apple
- should coopt another one of the bits in the 'scsz' resource, which
- would indicate that the terminologies be loaded in a fashion similar
- to that used by code fragments, wherein the application can specify
- which folders to search by means of alias resources.
-
- Dave Shaver
- Acrobyte R&D
- =========================================================================
- Date: Sat, 19 Nov 1994 21:49:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Buyer's Remorse
-
- >Lawrence D'Oliveiro wrote, back when I meant to reply originally:
- >
- >>>What exactly happened when you tried moving stuff to/from the desktop?
- >
- >As best as I can remember, the icon just snapped right back to where it
- >started. I didn't notice this happening with dragging between other
- >folders. But, I didn't mess with it for long.
- >
- >So, do we have any concensus yet on whether there is enough difference
- >between Finder 7.1.3 and 7.1.4 to make it not work? (I'm not sure I want
- >to be the one to experiment again, after getting that one alarming
- >message. Did anyone see any merit in those prophesies of doom?)
-
- The difference between Finder 7.1.3 and 7.1.4 is minute, and not
- significant to drag and drop. Under System versions prior to 7.5, either
- of those Finder's requires an extension called "Dragging Enabler" to fix up
- the Finder dragging you're having trouble with (the fix is included in
- System 7.5).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sat, 19 Nov 1994 21:49:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FMP AE open with password
-
- >>I finaly got it, mayby it an FAQ but here it is anyway
- >>
- >>Thit is the way to open a file from Userland Frontier with a password
- >included
- >>
- >>on open_pw (obj , password)
- >> return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
- >>'pPAS',password))}
- >
- >Can I do the same or something similar with AppleScript, or does it only
- >work with Frontier?
-
- Here's the Dictionary for the open event, as found in FileMaker 2.1v3. I
- think that if you go not very far back in FileMaker versions, you won't
- find the password parameter.
-
- Open: Open an object
- Open reference -- The object to open
- [with password string] -- The password to use
-
-
- [It's desirable to bring FileMaker to the front before doing this from
- AppleScript, too, although not *quite* so critical as with Frontier.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 20 Nov 1994 10:16:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Re: CLEAN INSTALL
-
- >> If you need instructions for a "clean install," feel free to e-mail me.
- >
- >I'm game...
-
- Here goes...
-
- [] Back up your hard drive
- [] Back it up again (just to be sure :-)
- [] Run the Apple Disk First Aid (this is actually
- important -- System 7.5 is incompatable with
- certain older versions of some disk drivers)
-
- The "barren ground approach":
-
- [] Now that you have two backups, reformat your harddrive
- with the newest driver, either from Apple or your
- third-party drive vendor (I have a new APS drive)
- [] Install on the clean drive
- [] Restore your backup
-
- The traditional approach:
-
- [] Open System Folder
- [] Drag the files System and Finder to the trash
- [] Rename your System Folder to something like
- "Old Sys-stuff" (you'll need it to recover your
- old Preferences, etc.)
- [] Restart from your Install Disk 1
- [] Install as instructed
- [] Restart twice (for some reason, System 7.5 makes
- the Desktop rebuild twice)
- [] Get back to work
-
- The Easter egg approach:
-
- [] Apparently, the 7.5 installer has a "clean install"
- option (finally!) I haven't used this, but the option
- is something like Command-Option-K
-
- Qapla',
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Mon, 21 Nov 1994 09:35:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: OSAX source??
-
- David Jokinen <ground@INTERLINK.NET> writes:
-
- >Yes, watch out! SetUpA4/RestoreA4 will let you GetPort, but you won't be
- >getting the "real" thePort.
-
- The QuickDraw globals are accessed via A5, not A4. Thus, whether you use
- SetUpA4/RestoreA4 or not has nothing to do with whether you can access
- QuickDraw globals or not.
-
- > theRealPort = **(GrafPtr **)CurrentA5; // Get your caller's thePort
-
- This is all GetPort does anyway.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 21 Nov 1994 09:38:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: buyer's remorse
-
- "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
-
- >--Lawrence D'Oliveiro wrote:
- >>
- >>"Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
- >>
- >>>--Lawrence D'Oliveiro wrote:
- >>>>
- >>>>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
- >>>
- >>> As am I, since this is what I'm running on my 8100.
- >>
- >>I doubt it. Power Macs need at least System 7.1.2, and they all come with
- >>Finder 7.1.4 already.
- >
- > True, but I was being a little less specific with the version
- >numbers than you are. To me, System 7.1 encompases both 7.1.1 and 7.1.2
- >because the really are the same overall system.
-
- No they aren't. Thus, you need the Dragging Enabler to do inter-application
- dragging with System 7.1 or 7.0.x, but you don't need it with 7.1.1 or later.
- Also, PowerTalk 1.0 only works with 7.1.1 or 7.1.2.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 21 Nov 1994 09:45:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Buyer's Remorse
-
- Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
-
- >Lawrence D'Oliveiro wrote, back when I meant to reply originally:
- >
- >>>What exactly happened when you tried moving stuff to/from the desktop?
- >
- >As best as I can remember, the icon just snapped right back to where it
- >started. I didn't notice this happening with dragging between other
- >folders. But, I didn't mess with it for long.
-
- OK, it wasn't quite clear to me what you were trying to drag. Obviously you
- weren't trying to move Finder icons from a folder/disk window to the desktop,
- but dragging items out of an application window.
-
- Besides the requirement for Finder 7.1.3/7.1.4, there are three parts to the
- Drag Manager:
- * The "Macintosh Drag and Drop" extension itself. This is built into
- System 7.5; you only need it under earlier systems.
- * The "Dragging Enabler". This replaces your Process Manager with a version
- that supports inter-application dragging. This new Process Manager is
- built into System 7.1.1 or later, so you only need it on earlier systems.
- * The "Clipping Extension", which adds Drag Manager support to the Finder.
- You always need to install this.
-
- Hope that makes things clearer...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Sun, 20 Nov 1994 16:53:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
- Subject: Re: OSAX Source
-
- >I guess no one works in pascal anymore.
-
- I don't have the luxury of working much in pascal any more but my guess is
- that you are trying to link with the "wrong" library. Which one is in your
- project? If you are trying to use the standard "Runtime.Lib" you will
- definitely get that error message. Make certain that you use
- "DRVRRuntime.Lib".
-
- |-------------------------------------------------------------|
- Steve Bryan Internet: sbryan@maroon.tc.umn.edu
- Sexton Software CompuServe: 76545,527
- Minneapolis, MN 55415 Fax: (612) 929-1799
- =========================================================================
- Date: Sun, 20 Nov 1994 18:09:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: buyer's remorse
-
- Lawrence D'Oliveiro writes:
-
- >Thus, you need the Dragging Enabler to do inter-application
- >dragging with System 7.1 or 7.0.x, but you don't need it with 7.1.1 or later.
-
- I gave a different System cut-off point for Dragging Enabler in a recent
- message. Lawrence is correct.
-
- [The easy way is to try it...if it works without the Dragging Enabler, it
- works without the Dragging Enabler.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 20 Nov 1994 21:52:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
- Subject: Re: more Eudora
-
- At 11/17/94, Dan Hinckley wrote:
- > 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
- > body selected . Anyone tell me whether/how AS can be used to move the
- > insertion point to the top or bottom of the quoted msg body? I haven't
- > found an osax for it w/that capacity yet:
- >
- > >set theReply to reply message n of mailbox "test" with quoting and self
-
- I believe there are osaxen that enable you to script keystrokes in apps
- that aren't otherwise scriptable. A single tap of the left-arrow will then
- move the insertion point to the top of the message. It is a little
- annoying that the message body is always highlighted when you move the
- insertion point into it.
-
- However, in Eudora it is possible with AppleScript to move the insertion
- point from one field to the next. For instance, the following script sets
- the To: field of a new message to a string, then sets the Subject: field to
- the empty string, which effectively moves the insertion point to the
- Subject: field without actually entering any text.
-
- tell application "Eudora"
- set recipient to (get selected text)
- set newMessage to make new message at end of mailbox "Out" of mail
- folder ""
- set field "To:" of newMessage to recipient
- set field "Subject:" of newMessage to ""
- end tell
-
-
- John
-
- ______________________________________________________________________________
- John Dunning jdunning@phoenix.princeton.edu
- =========================================================================
- Date: Mon, 21 Nov 1994 12:26:38 +0900
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Seiji Hayashi <g44402a@NUCC.CC.NAGOYA-U.AC.JP>
- Subject: Re: [Q}Applescript FAQs
-
- Dear Matthew
- Thank you for your response. It was a great help. I really
- appreciate it!!
-
- --------------------------------------------
- Seiji Hayashi (g44402a@nucc.cc.nagoya-u.ac.jp)
- Department of Earth and Planetary Sciences
- School of Science,Nagoya University
- Furo-cho Chikusa-ku
- Nagoya 464-01 Japan
- --------------------------------------------
- =========================================================================
- Date: Mon, 21 Nov 1994 00:09:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Scriptable Finder -- not recording?
-
- Friends:
-
- Recently, while trying to write a Finder AppleScript, I noticed that
- turning on "record" did not record any of my actions in the Finder. Well,
- it used to work.... Before I start in on the Extension Conflict Shuffle
- (TM), I wonder whether anyone else has encountered this problem?
-
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Mon, 21 Nov 1994 01:03:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
- Subject: Any way to coerce a string into a date object?
-
- Hello,
-
- I'm working on a script to process a GopherSurfer log file. The log file is
- plain ASCII and uses standard tab-delimited records. One of the fields in a
- transaction record is an abbreviated long date (for example, "Sat, Oct 15,
- 1994 2:44 PM"). I would like to coerce this string into a date object so
- that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
- perform wonderful and amazing feats with my data.
-
- AppleScript does not seem to be able to do the coercion trick; with the
- following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
- 1994 2:44 PM' into a date."
-
- --This won't work...
- set dateString to "Sat, Oct 15, 1994 2:44 PM"
- set dateObject to dateString as date
- (* and then on with the fun stuff... *)
-
- Any suggestions on how else to convert a string to a date? Is this possible?
-
- Thanks for any tips,
- Brent Sleeper
-
-
- --
- M. Brent Sleeeper -- bsleeper@flightpath.com
- Flightpath Communications -- info@flightpath.com
- =========================================================================
- Date: Mon, 21 Nov 1994 01:07:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
- Subject: ClarisWorks 3.0 scriptable?
-
- Hello,
-
- Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
- not, as the product description sheet made no mention of AppleScript (or my
- eyes overlooked it!).
-
- For those of you that have scripted MacWrite Pro and/or WordPerfect, how
- well do you think scripting has been implemented?
-
- Thanks,
- Brent Sleeper
-
-
- --
- M. Brent Sleeeper -- bsleeper@flightpath.com
- Flightpath Communications -- info@flightpath.com
- =========================================================================
- Date: Mon, 21 Nov 1994 14:18:13 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Craig Richmond <craig@ECEL.UWA.EDU.AU>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- At 2:07 PM 21/11/94, M. Brent Sleeper wrote:
- >Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
- >not, as the product description sheet made no mention of AppleScript (or my
- >eyes overlooked it!).
-
- At a recent product demonstration, I asked the man from Claris Australia
- and he stated that ClarisWorks 3.0 still only supported the core events.
-
- If it is anything like 2.1, I expect this means that if you send it any
- other events, it is likely to explode on you. ClarisWorks 2.1 had a
- moderate sized dictionary from memory. Just lots of it didn't work.
-
- Craig
-
- --
- Craig Richmond, Computer Officer, ECEL Computing Services +61 9 380 1405
- The University of Western Australia or 380 3860 Email for FAX Number
- craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
- if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
- =========================================================================
- Date: Mon, 21 Nov 1994 02:47:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: Re: buyer's remorse
- In-Reply-To: <199411210504.AAA17159@acme.freenet.columbus.oh.us>
-
- >>Lawrence D'Oliveiro writes:
- >>
- >>>>What exactly happened when you tried moving stuff to/from the desktop?
- >>
- >>As best as I can remember, the icon just snapped right back to where it
- >>started. I didn't notice this happening with dragging between other
- >>folders. But, I didn't mess with it for long.
- >
- >OK, it wasn't quite clear to me what you were trying to drag. Obviously you
- >weren't trying to move Finder icons from a folder/disk window to the desktop,
- >but dragging items out of an application window.
-
- I don't know why that seems obvious from what I wrote, but it's not true.
- I was trying to move Finder icons from a folder/disk window to the
- desktop, and vice-versa.
-
- Barry
- =========================================================================
- Date: Mon, 21 Nov 1994 00:30:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Any way to coerce a string into a date object?
-
- >Hello,
- >
- >I'm working on a script to process a GopherSurfer log file. The log file is
- >plain ASCII and uses standard tab-delimited records. One of the fields in a
- >transaction record is an abbreviated long date (for example, "Sat, Oct 15,
- >1994 2:44 PM"). I would like to coerce this string into a date object so
- >that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
- >perform wonderful and amazing feats with my data.
- >
- >AppleScript does not seem to be able to do the coercion trick; with the
- >following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
- >1994 2:44 PM' into a date."
- >
- >--This won't work...
- >set dateString to "Sat, Oct 15, 1994 2:44 PM"
- >set dateObject to dateString as date
- >(* and then on with the fun stuff... *)
- >
- >Any suggestions on how else to convert a string to a date? Is this possible?
-
- Try
-
- set dateString to "Sat, Oct 15, 1994 2:44 PM"
- set dateObject to date dateString
-
-
- (or leave out the dateString object altogether, if that's convenient).
-
- You'll have to experiment to see just how far the system will go in
- interpreting not-quite-right date strings...it works pretty hard, as seen
- by the fact that it manages this one:
-
- "10'15, 1994 2:44 PM" and even this one "10+15, 1994 2*44 PM"
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 21 Nov 1994 00:30:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- >At 2:07 PM 21/11/94, M. Brent Sleeper wrote:
- >>Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
- >>not, as the product description sheet made no mention of AppleScript (or my
- >>eyes overlooked it!).
- >
- >At a recent product demonstration, I asked the man from Claris Australia
- >and he stated that ClarisWorks 3.0 still only supported the core events.
-
- And by "core", I think he meant "required"..."just the core events" can do
- quite a lot.
-
- >If it is anything like 2.1, I expect this means that if you send it any
- >other events, it is likely to explode on you. ClarisWorks 2.1 had a
- >moderate sized dictionary from memory. Just lots of it didn't work.
-
- It's called bug fix by specification change. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 21 Nov 1994 12:32:51 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Davies <d.a.davies@BHAM.AC.UK>
- Subject: PowerTalk and Applescript (groan, yes again!)
-
- OK, I know it's everyone's least favorite subject but could someone one
- update me on the current state of affairs with PowerTalk scripting. I want to
- be able to filter my incomming email for instance.
-
- I seem to remember hearing about a commercial package called something like
- 'Power Rules' that allows Applescript access to most of PowerTalk's
- functionality? Anyone know where I can get a copy from?
-
- I'm not sure where the responsibility lies for Applescript-aware PowerTalk
- services. Is it with Apple to extend the Finders Applescript awareness to
- encompass PT or is it with the 3rd party developers like Star Nine who make
- the CSAMs?
-
- Thanks,
-
- David Davies
- =========================================================================
- Date: Mon, 21 Nov 1994 10:19:39 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Kee's show and tell
- In-Reply-To: Your message of "Sat, 19 Nov 94 13:36:16 PST"
-
- Brian,
-
- >>Had to create a prefs file to store configuration data into. The ability of
- >>HyperCard to remember stuff is quite nice. I needed to do a bunch of text
- >>processing and I personally found the combination of AppleScript and no
- >>place to store variables just too much. But the real kicker was what seemed
- >>to be some sort of memory leak. It was a long time ago (in finger strokes)
- >>that I attempted to bend FaceSpan to do my bidding. The creation cycle,
- >>seemed slow and the debugging was non-existent.
- >
- >You don't have to have a prefs file, you can use properties.
- >
- >As to the leak, get version 1.0.1.
-
- How do you get this? Is it part of the AppleScript Developer's Guide update?
-
- Thanks.
-
- pf
-
-
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Mon, 21 Nov 1994 16:26:51 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dan Hinckley <dbh@GN.APC.ORG>
- Subject: Re: more Eudora
-
- >> 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
- >> body selected . Anyone tell me whether/how AS can be used to move the
- >> insertion point to the top or bottom of the quoted msg body? I haven't
- >> found an osax for it w/that capacity yet:
- >>
- >> >set theReply to reply message n of mailbox "test" with quoting and self
- >
- John Dunning sez:
- >I believe there are osaxen that enable you to script keystrokes in apps
- >that aren't otherwise scriptable.
-
- Anyone seen such a critter?
- >
- >However, in Eudora it is possible with AppleScript to move the insertion
- >point from one field to the next. For instance, the following script sets
- >the To: field of a new message to a string, then sets the Subject: field to
- >the empty string, which effectively moves the insertion point to the
- >Subject: field without actually entering any text.
- >_________________________________________________
- >John Dunning jdunning@phoenix.princeton.edu
-
- I'd worked out the shift you describe. What I wanted to do was insert some
- text at the beginning or end of the Reply w/o having to set the msgBody to
- a variable and paste it back in, though that works just fine..
- =========================================================================
- Date: Mon, 21 Nov 1994 11:42:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
- Subject: Enabling/Disabling Scripts in Script Menu
-
- I've finished making an app of mine scriptable, and as part of
- that effort I provide a "Scripts" menu which lists all scripts
- found at launch time in a "Scripts" folder. I foresee this
- being used by our in-house development staff as a quick and
- cost-effective way to write "plug-ins" for the app, and users
- may well write scripts for themselves.
-
- So far, so good.
-
- I have been very very careful in the past development of this
- app to make sure that menus enable/disable depending on whether
- they are relevant at the moment. But now I'm faced with considering
- how the Scripts menu items (each of which represents a script)
- should be grayed out.
-
- Since the Scripts menu is built dynamically when the app is launched,
- and because the app doesn't know what each script does (especially
- those written by third parties), I need some dynamic way of
- establishing the menu enable/disable rules.
-
- I can think of several technical aspects of this challenge, and
- there's also a user interface issue (that is, I see both a question
- of "how do the scripts communicate with the app so appropriate
- menu control is exercised" and "how do I describe this process to
- a script writer? What hoops will he/she have to go through?").
-
- It appears to me, from the few apps I've glanced at which have
- Scripts menus, that they simply ignore this problem.
-
- Has anyone a solid approach to this? Does Apple have any human
- interface guidelines on this?
- =========================================================================
- Date: Mon, 21 Nov 1994 09:12:43 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
- Subject: FMP and Passwords
-
- Reply to: FMP and Passwords
- To use AppleScript to open a FileMaker Pro dbase that has a password you use
- the optional parameter 'with password'
-
- e.g.
-
- tell application "FileMaker Pro"
- open "fileAlias" with password "appropriatePassword"
- end tell
- =========================================================================
- Date: Mon, 21 Nov 1994 09:32:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jerry Ballard <gqb@FARALLON.COM>
- Subject: Re: FMP and Passwords
-
- As a point of interest, if you have 2 levels of access set up, one with a
- password for administration, and the other with no password for general
- limited access, FM presents you with a "enter password, or click OK for
- limited access" dialog" upon opening.
- I've found no way to script my way past this other than to set up a password
- for the limited access level in ADDITION to a 'no password' access.
- That way you can script for the desired access level, or open without a
- password directly.
-
- _______________________________________________________________________________
-
- Reply to: FMP and Passwords
- To use AppleScript to open a FileMaker Pro dbase that has a password you use
- the optional parameter 'with password'
-
- e.g.
-
- tell application "FileMaker Pro"
- open "fileAlias" with password "appropriatePassword"
- end tell
- =========================================================================
- Date: Mon, 21 Nov 1994 10:35:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- At 8:42 AM 11/21/94, Dana E. Cartwright 315-442-9104 wrote:
- >I have been very very careful in the past development of this
- >app to make sure that menus enable/disable depending on whether
- >they are relevant at the moment. But now I'm faced with considering
- >how the Scripts menu items (each of which represents a script)
- >should be grayed out.
- >
- >It appears to me, from the few apps I've glanced at which have
- >Scripts menus, that they simply ignore this problem.
- >
- Ignore the problem - it's MUCH easier!
-
- If you "must" do it, then the correct approach IMHO would be to
- send an "event" (OSAExecuteEvent) to the script which can then return a
- boolean responce of enable/disable. The only disadvantage to this approach
- is speed - if you've got a LOT of scripts, then it is going to a LONG time
- for menus to drop!
-
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Engineering AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Mon, 21 Nov 1994 11:40:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Klaus P. Fechner" <klaus@FORSYTHE.STANFORD.EDU>
- Subject: Re: Buyer's Remorse
-
- >>Lawrence D'Oliveiro wrote, back when I meant to reply originally:
- >>
- >>>>What exactly happened when you tried moving stuff to/from the desktop?
- >>
- >>As best as I can remember, the icon just snapped right back to where it
- >>started. I didn't notice this happening with dragging between other
- >>folders. But, I didn't mess with it for long.
- >>
-
- ....
-
- >The difference between Finder 7.1.3 and 7.1.4 is minute, and not
- >significant to drag and drop. Under System versions prior to 7.5, either
- >of those Finder's requires an extension called "Dragging Enabler" to fix up
- >the Finder dragging you're having trouble with (the fix is included in
- >System 7.5).
-
- Thanks for the hints! The Dragging Enabler fell victim to my unsuccessful
- attempt at getting 7.5 to run on my SE (it worked, but not with Compact
- Virtual). After reading Jeremy P. Howard's reply to this list I put it back
- in with 7.1 and tried it sucessfully with both Finder 7.1.3 and 7.1.4.
- Drag/drop works (again) as expected. Thanks very much!
-
- Klaus
-
- -------------------------------------------------------------
- Klaus P. Fechner, Stanford University/VAMC Palo Alto, CA, USA
- =========================================================================
- Date: Tue, 22 Nov 1994 08:49:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU> writes:
-
- >Since the Scripts menu is built dynamically when the app is launched,
- >and because the app doesn't know what each script does (especially
- >those written by third parties), I need some dynamic way of
- >establishing the menu enable/disable rules.
- >
- >I can think of several technical aspects of this challenge, and
- >there's also a user interface issue (that is, I see both a question
- >of "how do the scripts communicate with the app so appropriate
- >menu control is exercised" and "how do I describe this process to
- >a script writer? What hoops will he/she have to go through?").
-
- Remember that you can do a lot of things with a script besides running it:
- you can invoke specific handlers by name, and you can get/set properties.
-
- So what you need to do is define a standard set of handlers and/or properties,
- which return information that your application can interrogate to determine
- whether the script is currently applicable or not.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 22 Nov 1994 08:55:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM> asks:
-
- >For those of you that have scripted MacWrite Pro and/or WordPerfect, how
- >well do you think scripting has been implemented?
-
- I've done a little MacWrite Pro scripting. It's pretty basic: you can get and
- set the selection, insert text, select menu items, apply styles, do some
- search/replace, do a mail merge, and not much else. It doesn't support the
- Object Model, which is a major limitation.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 21 Nov 1994 12:14:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- >I've finished making an app of mine scriptable, and as part of
- >that effort I provide a "Scripts" menu which lists all scripts
- >found at launch time in a "Scripts" folder. I foresee this
- >being used by our in-house development staff as a quick and
- >cost-effective way to write "plug-ins" for the app, and users
- >may well write scripts for themselves.
- >
- >So far, so good.
- >
- >I have been very very careful in the past development of this
- >app to make sure that menus enable/disable depending on whether
- >they are relevant at the moment. But now I'm faced with considering
- >how the Scripts menu items (each of which represents a script)
- >should be grayed out.
- >
- >Since the Scripts menu is built dynamically when the app is launched,
- >and because the app doesn't know what each script does (especially
- >those written by third parties), I need some dynamic way of
- >establishing the menu enable/disable rules.
- >
- >I can think of several technical aspects of this challenge, and
- >there's also a user interface issue (that is, I see both a question
- >of "how do the scripts communicate with the app so appropriate
- >menu control is exercised" and "how do I describe this process to
- >a script writer? What hoops will he/she have to go through?").
- >
- >It appears to me, from the few apps I've glanced at which have
- >Scripts menus, that they simply ignore this problem.
- >
- >Has anyone a solid approach to this? Does Apple have any human
- >interface guidelines on this?
-
- As the script is run idependently of the state of the app there is no
- general way of determining which ones should be grayed out. How can the app
- writer know which ones would be valid. You could of course define all the
- different possible states as some enumeration. Then when you start up each
- script would be sent a command asking which states it used. Then use this
- information to grey out their entry. Its a wild idea and totally
- unpractical, IMHO!
-
- In general when providing script menus developers have taken two approaches:
-
- * Either they keep an internal data structure and add Add Script... and
- Remove Script... to add the scripts from memory. Saving the alias to the
- script files in their preferences. If they can't find the file the alias
- represents then they don't show it in the list (or complain to the user
- when they try to run it). Or keeping the 'scpt' resources in their
- Preferences file (you would need to provide your app with a script editor
- if you wanted to do this). You app is really attachable then.
-
- * Choose a special folder (in your folder in the Preferences folder or the
- application folder?) where the user places scripts to be executed. If the
- scripts are there they appear in the menu.
-
- The "lists all scripts found at launch time" is a serious loss. When the
- user pulls down the menu should show the current set of scripts. Restarting
- your app to add a script will be a big pain and won't be appraciated by the
- users. Try one of the two techniques described above.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 21 Nov 1994 15:15:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "David E. Heady" <DHeady@AOL.COM>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- According to Claris, ClarisWorks doesn't want to include the overhead to make
- it fully scriptable. They feel this is a feature that separates them (in a
- positive manner) from MSWorks which is rotund with OLE and such. They feel
- that the average CW user doesn't use AS much. I think they are right. I have
- found that PreFab Player gives me as much if not greater access to CW
- features that a scripting dictionary would. Try it.
- DHeady
- =========================================================================
- Date: Mon, 21 Nov 1994 15:26:28 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ian McKirdy <mckirdy@CCRS.EMR.CA>
- Subject: List of remote Machines that are ON?
-
- Maybe because it is monday but I can't see how to get a list of remote
- machines such as one can see in the Chooser. I have been through the
- Language Guides and nothing seems to be capable of querying a folder that
- is not mounted. Quickeys will attempt to mount via Mounty any predefined
- volumes whether the machine is turned on or not. If the machine is off I
- get a dialog box that I am getting tired of acknowledging. If I could get
- a List of remote machines I could then proceed to use predefined Quickeys
- to mount the DropBoxes I need to access.
-
- Any help is gratefully appreciated.
-
-
-
- Ian McKirdy
- Canada Centre Remote Sensing/Centre Canadien de T=E9l=E9d=E9tection
- 588 Booth Street, # 346
- Ottawa, Ontario
- CANADA K1A 0Y7
- 613-947-1318
- 613-947-1385 Fax
- mckirdy@ccrs.emr.ca Email
- =========================================================================
- Date: Mon, 21 Nov 1994 12:23:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: I got this?
-
- >For light reading: "The Unix Haters Handbook" [yes, the Unix members of
- >the community are large contributors to the problem] Garfinkel, Weise &
- >Strassmann (with an "anti-foreward" by Dennis Ritchie). ISBN 1-56884-203-1
-
- For those of you who don't know this is a collection of stuff from the
- UNIX-HATERS mailing list out of MIT the home of the LISPers and "people who
- never forgave the world for accepting Unix instead of ITS and C/C++ instead
- of LISP".
-
- Steve Strassmann is at Apple Cambridge contributing to Dylan.
-
- An interesting book (which complains that C++ had no namespace control or
- run time type information but by the time it was published C++ is speced to
- have both -- I think this sums up C++!).
-
- Its a shame AppleScript doesn't have handlers/procedures as first class
- objects :-(
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 21 Nov 1994 12:43:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Kee's show and tell & FaceSpan
-
- >As to the leak, get version 1.0.1.
-
- and Fred said:
-
- >How do you get this? Is it part of the AppleScript Developer's Guide update?
-
- We need more details on both of these!
-
- FaceSpan 1.0 is riddled with bugs (mask problems with the first icon, icon
- resources get duplicated, not deleting icon resources when you ask it to
- delete them, problems passing parameters to handler (especially references
- to object) dependent upon script location, insistence that "contents of
- theObj" means the the same as theObj even when talking to record with a
- contents label, applets bomb when too much data is added to a app property,
- loss of indentation on printing, crazy font spacing, string overlaps on
- printouts, incorrect highlighting in multiple selections, no way to change
- the 8x8 alignment grid, distribution across and enclosing box leads to
- bizzare results!, if a button is the default item then its a pain to align
- on the grid, no memory of project window layout, big gray updates, FaceSpan
- catches thrown errors even when you have an error handler in place then
- continues the error to you, a save command when there are no changes move
- the insertion point to the bottom of the script, modal dialogs really are
- modal (you can't have a modal looking window for which you write your own
- dialog handler -- makes progress dialogs tricky, bombs during window layout
- on PPC (which is sensetive to memory problems), can't handle general
- AppleEvents, building a project copies all the resources into the app
- including a project's ckid resource (yes, I use source code control!),
- etc).
-
- I have a standing joke with a collegue here called "FaceSpan bug du jour".
- I have been finding one or more per day for the last month or more.
-
- So I beleive I could make use of 1.0.1!
-
- If anyone at SDU is listening I would like to put FaceSpan 2.0 alpha
- through the mangle too.
-
- FaceSpan is an interesting concept but it ain't ready for prime time in
- 1.0. Maybe 1.0.1 fixes the worse bugs. Remember in a commercial environment
- we are out there competing Windows boxes with PowerBuilder and Visual
- BASIC, which at least mature if rather dull development environments.
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Mon, 21 Nov 1994 17:47:01 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Dennis Whiteman <ultimate@MAIL.ICON.NET>
- Subject: Re(2): ClarisWorks 3.0 scriptable?
-
- David E. Heady wrote on 11/20/94:
-
- > They feel this is a feature that separates them
- > (in a positive manner) from MSWorks which is
- > rotund with OLE and such. They feel that the
- > average CW user doesn't use AS much. I think
- > they are right.
-
- I disagree. If the state of Mac spreadsheets were such that Claris Resolve
- and Lotus 1-2-3 were still around (and scriptable), I might tend to agree but
- they aren't. Basically, if you want to do any work with a spreadsheet and
- AppleScript, you're looking at Excel. I personally don't have the budget or
- RAM for Excel if I want to pull data out of Filemaker Pro and generate a
- chart. While I like ClarisWorks, if it continues like it is, I won't be
- purchasing any more upgrades.
-
- Version 3.0 is a joke for Mac users since it doesn't fully support Drag and
- Drop and uses a proprietary help system over Apple Guide. I like 2.1 fine,
- but the two questions I'm asking before buying any software these days is: 1)
- is it native for PowerMacs or is a native upgrade planned (ClarisWorks met
- this criteria quite well) and 2) is it scriptable? That said, I hope they'll
- reconsider, but if what you're saying is true, we can pretty much abandon any
- hope of OpenDoc support/usage in ClarisWorks since that requires some
- scripting support.
-
- Dennis L. Whiteman
- THE ULTIMATE FREELANCER
- =========================================================================
- Date: Tue, 22 Nov 1994 13:37:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- "David E. Heady" <DHeady@AOL.COM> writes:
-
- >According to Claris, ClarisWorks doesn't want to include the overhead to make
- >it fully scriptable. They feel this is a feature that separates them (in a
- >positive manner) from MSWorks which is rotund with OLE and such. They feel
- >that the average CW user doesn't use AS much. I think they are right. I have
- >found that PreFab Player gives me as much if not greater access to CW
- >features that a scripting dictionary would.
-
- That's a shame, and not just because it's a self-fulfilling expectation.
- Having an application which is scriptable, recordable and fully supports the
- Object Model is *much* nicer than trying to stuff around with intricate
- sequences of mouse clicks and keystrokes which will break when the next
- version of the application makes any changes to its user-interface elements.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 21 Nov 1994 16:06:48 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tim Guinn <tpguinn@UTXVMS.CC.UTEXAS.EDU>
- Subject: Help with 'event ScTIstdD' ?
-
- Well, I=B9ve finally done it. I took a week off from work to try
- and learn Applescript. Right ;-) ... I know, I=B9m not going to
- accomplish much. But just getting the chance to play around with
- it is half the battle, for me.
-
- Anyhow. I=B9m trying to run the Scriptable Apps Search droplet
- that is included with Scriptable Apps Searcher package from
- gaea.kgs.ukans.edu:
-
- /applescript/scripts/FinderScriptingToolkit.hqx
-
- I=B9ve installed the GTQ Scripting Library in its original folder,
- inside my Extensions/Scripting Additions folder. But when I
- run the droplet, I get this message:
-
- =B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
-
- Which to me indicates that maybe I haven=B9t installed a necessary
- OSAX correctly. Yes? No? Is it maybe because I=B9ve got the GTQ Lib
- nested three levels down in the System? Even though it *is* inside
- the Scripting Additions, inside Extensions?
-
- Or am I going off on an unnecessary tangent?
-
- =46WIW, I=B9m only up to chapter VII of Goodman=B9s _Complete AppleScript
- Handbook_. I=B9m just playing with this particular script (Scriptable
- Apps Searcher) to see how a more advanced package works.
-
- Should I keep reading the book till I get to the point where this
- kind of thing gets explained? 8-) I *would* kinda=B9 like to find all of
- my scriptable apps...
-
- TIA
-
- -tpg
- =========================================================================
- Date: Tue, 22 Nov 1994 13:45:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- Kevin Purcell <kevinpu@ATM.COM> writes:
-
- >>I've finished making an app of mine scriptable, and as part of
- >>that effort I provide a "Scripts" menu which lists all scripts
- >>found at launch time in a "Scripts" folder.
- ..
- >>Since the Scripts menu is built dynamically when the app is launched,
- >>and because the app doesn't know what each script does (especially
- >>those written by third parties), I need some dynamic way of
- >>establishing the menu enable/disable rules.
-
- >* Choose a special folder (in your folder in the Preferences folder or the
- >application folder?) where the user places scripts to be executed. If the
- >scripts are there they appear in the menu.
- >
- >The "lists all scripts found at launch time" is a serious loss.
-
- This is absolutely correct. A nicer approach is to check the modification
- date of the folder when the user clicks in the menu bar (or hits a command-
- key shortcut); if it has changed since you last checked, then you need to
- rebuild the Scripts menu before the user gets a chance to select from it.
-
- By the way, Leonard is probably right that any kind of enabled/disabled
- checking is going to be slow. But that's no reason not to try it anyway,
- if only to prove the point. :-)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Mon, 21 Nov 1994 20:14:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Bruce B. Lacey (Bruce B. Lacey)" <blacey@CERF.NET>
- Subject: Re: Any way to coerce a string into a date object?
-
- >Hello,
- >
- >I'm working on a script to process a GopherSurfer log file. The log file is
- >plain ASCII and uses standard tab-delimited records. One of the fields in a
- >transaction record is an abbreviated long date (for example, "Sat, Oct 15,
- >1994 2:44 PM"). I would like to coerce this string into a date object so
- >that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
- >perform wonderful and amazing feats with my data.
- >
- >AppleScript does not seem to be able to do the coercion trick; with the
- >following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
- >1994 2:44 PM' into a date."
- >
- >--This won't work...
- >set dateString to "Sat, Oct 15, 1994 2:44 PM"
- >set dateObject to dateString as date
- >(* and then on with the fun stuff... *)
- >
- >Any suggestions on how else to convert a string to a date? Is this possible?
-
- Well close on the as date but you need to first tell Applescript to
- interpret dateString as a date value by using the following statement...
-
- set dateObject to date dateString
-
- This completes the setting of dateObject to a date value by filling in any
- missing parts of dateString. Then of course you can use it as a normal
- date value.
-
- Have fun. ;-)
- =========================================================================
- Date: Mon, 21 Nov 1994 22:08:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ClarisWorks 3.0 scriptable?
-
- >Lawrence D'Oliveiro says:
- >
- >I've done a little MacWrite Pro scripting. It's pretty basic: you can get and
- >set the selection, insert text, select menu items, apply styles, do some
- >search/replace, do a mail merge, and not much else. It doesn't support the
- >Object Model, which is a major limitation.
-
- Another way of looking at it is that it doesn't support the Object Model,
- so it was possible to include the scripting which is there, within givens
- of time and budget. And the scripting which is there allows one to do
- quite a bit...producing specially-formatted documents generally involves
- preparing (by hand) a stationery document, and opening that stationery as
- the arena into which the script puts the current data.
-
- The rather amusing aspect is that the first scriptable (not "Scriptable",
- since there was no 'aete') version was released very nearly the same day as
- Apple's stealth release of AppleScript 1.0. And Frontier glue was
- available as of that release of MacWrite Pro.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 21 Nov 1994 22:50:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Help with 'event ScTIstdD' ?
-
- >Well, I=B9ve finally done it. I took a week off from work to try
- >and learn Applescript. Right ;-) ... I know, I=B9m not going to
- >accomplish much. But just getting the chance to play around with
- >it is half the battle, for me.
- >
- >Anyhow. I=B9m trying to run the Scriptable Apps Search droplet
- >that is included with Scriptable Apps Searcher package from
- >gaea.kgs.ukans.edu:
- >
- > /applescript/scripts/FinderScriptingToolkit.hqx
- >
- >I=B9ve installed the GTQ Scripting Library in its original folder,
- >inside my Extensions/Scripting Additions folder. But when I
- >run the droplet, I get this message:
- >
- >=B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
- >
- >Which to me indicates that maybe I haven=B9t installed a necessary
- >OSAX correctly. Yes? No? Is it maybe because I=B9ve got the GTQ Lib
- >nested three levels down in the System? Even though it *is* inside
- >the Scripting Additions, inside Extensions?
-
- Hmmm...I'm a little surprised, but yes...Scripting Additions seem to need
- to be "loose" in the Scripting Additions folder, not nested at a lower
- level. Based on testing just now. [Surprised, because recent portions of
- Apple software have tended to follow the nests in the System Folder as far
- down as necessary.]
-
- What I do is apply a label to all non-Apple osaxen (so I can find them
- quickly to get rid of them), and put the ones I might need into Scripting
- Additions.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 22 Nov 1994 00:18:21 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- Dana E. Cartwright <decartwr@MAILBOX.SYR.EDU> wrote:
- >
- >I've finished making an app of mine scriptable, and as part of
- >that effort I provide a "Scripts" menu which lists all scripts
- >found at launch time in a "Scripts" folder. ...
- >
- >I have been very very careful in the past development of this
- >app to make sure that menus enable/disable depending on whether
- >they are relevant at the moment. But now I'm faced with considering
- >how the Scripts menu items (each of which represents a script)
- >should be grayed out.
- >
- > ...
- >
- >It appears to me, from the few apps I've glanced at which have
- >Scripts menus, that they simply ignore this problem.
- >
- >Has anyone a solid approach to this? Does Apple have any human
- >interface guidelines on this?
-
- We did this in PhotoFlash and I never saw the need to enable or disable
- script menu items. We disable the entire menu when dialogs are up, but
- otherwise you can always run a script. Heck, even our scripts can run
- scripts. Perhaps you are refering to some sort of necessary state the
- script might require. I think the solution is to write more robust
- scripts. They should interogate the app and account for all possible
- states. Most of my scripts at least account for the way they were launched
- (i.e. run versus open, run with no selection versus run with a selection,
- etc).
-
- I think that's a much better solution than enabling and disabling things.
- We manage it by supporting DoScript to run scripts. We record an alias to
- the script, but I would like to make it relative to the Scripts folder, but
- I don't know what AppleScript does. There's another exercise for the
- curious. How does AppleScript parse a relative alias?
-
- In addition, it is best to save the modified date for the folder and
- rebuild your cache when it changes. We only check this when becoming the
- front application. Since we do an heirarchical menu, it can take some
- serious time to hit the disk and rebuild the whole thing. It's a bit much
- for doing when you click on the menu.
-
- Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
- >By the way, Leonard is probably right that any kind of enabled/disabled
- >checking is going to be slow. But that's no reason not to try it anyway,
- >if only to prove the point. :-)
-
- It's not the running of the script that would delay it. It's the loading,
- both disk and AppleScript. If you were to load all the scripts into OSAIDs
- you would be able to send them messages right quick. Donald's done some
- tests with SpriteWorld using AppleScripts as collision detectors. They
- slow way down if you send any events outside of the application obviously,
- but for direct dispatching of fast code and intrinsic AppleScript code,
- it's plenty quick.
-
- Jon
- =========================================================================
- Date: Tue, 22 Nov 1994 00:21:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 20 Nov 1994 to 21 Nov 1994
-
- Leonard said:
- > Ignore the problem - it's MUCH easier!
- >
- > If you "must" do it, then the correct approach IMHO would be to
- >send an "event" (OSAExecuteEvent) to the script which can then return a
- >boolean responce of enable/disable. The only disadvantage to this approach
- >is speed - if you've got a LOT of scripts, then it is going to a LONG time
- >for menus to drop!
-
- Lawrence:
- >So what you need to do is define a standard set of handlers and/or properties,
- >which return information that your application can interrogate to determine
- >whether the script is currently applicable or not.
-
- Someone should try this and see how it goes.
-
- Of course this begs the question- how does the *script* know if it should
- be enaabled? By sending events back to the app for state information? (ie,
- "hasSelection", "window of type foo is frontmost", etc.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, CTB Tools, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Tue, 22 Nov 1994 04:53:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
- Subject: GopherStat: a Utility for GopherSurfer and WebStat
-
- Hello,
-
- GopherStat is an AppleScript application that will transform a GopherSurfer
- log file into a MacHTTP-style log file that is compatible with WebStat.
-
- Why, do you ask? Well, so I can serve nifty HTML reports about my
- gopher server from my web server! Seriously, there really aren't any
- utilities out there (as far as I know) to analyze GopherSurfer logs.
- WebStat does such a nice job at MacHTTP that I thought I'd let it
- tackle GopherSurfer, too.
-
- Caveat: it's butt-slow.
-
- Required Components:
-
- Choose Files & Folders osax - Mark Alldritt - alldritt@wimsey.com
- Date Calculations osax - Lawrence D'Oliviera - ldo@waikato.ac.nz
- File IO osax - Mark Alldritt - alldritt@wimsey.com
-
- If you'd like a copy, either source or compiled, let me know, and I'll
- e-mail it to you.
-
- Brent Sleeper
-
-
- --
- M. Brent Sleeeper -- bsleeper@flightpath.com
- Flightpath Communications -- info@flightpath.com
- =========================================================================
- Date: Tue, 22 Nov 1994 06:38:00 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Lloyd <100046.3512@COMPUSERVE.COM>
- Subject: Scriptable Finder & 7.1 ?
-
- Scriptable Finder & 7.1 ?
-
- Can safely use Finder 7.5 and the Finder Scripting Extension with System 7.1 ?
- I heard reference once to there being problems with this setup resulting in lost
- files.
-
- Regards,
-
- Dave L.
- =========================================================================
- Date: Tue, 22 Nov 1994 10:17:11 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Holger Skok <skok@ITWDS2.ENERGIETECHNIK.UNI-STUTTGART.DE>
- Subject: Re: ClarisWorks 3.0 scriptable?
- In-Reply-To: <9411220625.AA08468@itwds1.energietechnik.uni-stuttgart.de> from
- "Automatic digest processor" at Nov 22, 94 00:00:04 am
-
- -----------------------------------------------------------------------
- Holger Skok Tel.: 0711-685-3230
- Universitaet Stuttgart Fax.: 0711-685-3503
- Institut fuer Thermodynamik und Waermetechnik
- #
- email.: skok@itwds2.energietechnik.uni-stuttgart.de
- -----------------------------------------------------------------------
- Content-Type: text
- Content-Length: 143
-
- Hi everyone,
-
- PreFab Player sounds interesting. Does anyone have any more info on it?
- (price, capabilities, available where, demo?)
-
- Ciao,
- HSK
- =========================================================================
- Date: Tue, 22 Nov 1994 09:43:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Michael D. Doub" <doub@DG-RTP.DG.COM>
- Subject: Scriptable Drawing Program
-
- Does anyone know if there is a scriptable Drawing Program available?
-
- I would like to try and create a visual representation of a call graph for
- subroutines within a program. I have other tools create a text file that
- contains information like:
-
- "AAA called by BBB CCC"
- "BBB called by CCC DDD"
-
- The goal is to create a picture to help illustrate the complexity of the
- program.
-
- An suggestions would be appreciated
-
- -- Mike
-
-
-
- ---------------------------------------------------------------------
- Michael D. Doub internet: doub@dg-rtp.dg.com
- Data General Corporation uucp: ...!mcnc!rti!dg-rtp!doub
- 62 Alexander Drive voice: (919) 248-5850
- Research Triangle Park, NC 27709 fax: (919) 248-6312
- ---------------------------------------------------------------------
- =========================================================================
- Date: Tue, 22 Nov 1994 08:43:59 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: Scriptable Drawing Program
-
- > Does anyone know if there is a scriptable Drawing Program
- > available?
-
- Canvas is scriptable although I've heard there are some problems (sorry
- I can't be more specific.
-
- Peter
- =========================================================================
- Date: Tue, 22 Nov 1994 09:52:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Scriptable Finder & 7.1 ?
- In-Reply-To: <no.id> from "David Lloyd" at Nov 22, 94 06:38:00 am
-
- --David Lloyd wrote:
- >
- >Scriptable Finder & 7.1 ?
- >
- >Can safely use Finder 7.5 and the Finder Scripting Extension with System
- >7.1 ? I heard reference once to there being problems with this setup
- >resulting in lost files.
-
- Well, there isn't a Finder 7.5, but you can quite safely use Finder
- 7.1.3 or 7.1.4 along with Finder Scripting Extension under System 7.1.
- I did this for quite some time on my Q80 before I upgraded it to an
- 8100. You also need to make sure you have the 7.1.3 version of the
- Network Extension.
-
- -Hades
- =========================================================================
- Date: Tue, 22 Nov 1994 10:22:20 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gib Veconi <Gib_Veconi@SCP.COM>
- Subject: RE> PowerTalk and ApplescrI
-
- On Tue, Nov 22, 1994, David Davies wrote:
-
- >OK, I know it's everyone's least favorite subject but could someone one
- >update me on the current state of affairs with PowerTalk scripting. I want to
-
- >be able to filter my incomming email for instance.
-
- There is a set of osaxen called GTQLib which contains some commands for using
- PowerTalk (but none which can filter your email). The set is available at gaea.
-
-
- There is also a company called Graphical Business Interfaces which publishes
- AOCE tools for AppleScript. I've ordered, but not yet received, their
- developer's kit. You can reach GBI at http://www.gbi.com/.
-
- Gib
-
- _____________________________________________________________________________
-
-
- _______ _______ ________
- | _____\ | _____\ |\ _____ \ Gib Veconi
- |\ \____| |\ \____| \ \ \____\ \ System Analyst
- \ \_____ \ \ \ \ \ \ _____/ SCP Communications, Inc.
- \|_____\ \ \ \ \____ \ \ \____/ 134 West 29th Street
- |\______/ \ \______\ \ \_\ New York, NY 10001
- \|______/ \|______| \|_| gib@scp.com
- *
- _____________________________________________________________________________
- *
- =========================================================================
- Date: Tue, 22 Nov 1994 07:24:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Help with 'event ScTIstdD' ?
-
- Hello,
-
- > =B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
-
- The ScTlstdD event is one of mine. Try installing Script Tools
- (specifically the Choose Files & Folders osax).
-
- -Mark
- =========================================================================
- Date: Tue, 22 Nov 1994 16:03:52 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
- Subject: Re: Scriptable Drawing Program
-
- Dear colleagues:
-
- Michael D. Doub wrote:
-
- >Does anyone know if there is a scriptable Drawing Program available?
- >...
-
- I tried Canvas (US version 3.5 and 3.5.2) with the examples on gaea.
- Unfortunately, it crashes after a minute or so. Anyone to have more luck?
- Or what am I doing wrong? Other scriptable applications and AppleScript
- itself (vs 1.1) run fine.
-
- Greetings, Michael.
-
- Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
- D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
- =========================================================================
- Date: Tue, 22 Nov 1994 11:26:16 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gib Veconi <Gib_Veconi@SCP.COM>
- Subject: Mac listserv s/w?
-
- I think this may have been covered before, but is anybody aware of a Mac-based,
- scriptable, listerv program? Use of AOCE would be a plus.
-
-
- _____________________________________________________________________________
-
- _______ _______ ________
- | _____\ | _____\ |\ _____ \ Gib Veconi
- |\ \____| |\ \____| \ \ \____\ \ System Analyst
- \ \_____ \ \ \ \ \ \ _____/ SCP Communications, Inc.
- \|_____\ \ \ \ \____ \ \ \____/ 134 West 29th Street
- |\______/ \ \______\ \ \_\ New York, NY 10001
- \|______/ \|______| \|_| gib@scp.com
-
- _____________________________________________________________________________
- =========================================================================
- Date: Tue, 22 Nov 1994 10:51:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: DayDoubler (humor)
-
- For those of you waiting for the TimeDoubler osax that Dan Hinckley mentioned,
- Connectrix has a new product......
-
- **Brady Johnson** <bjohnson@halcyon.com> writes to announce a new
- product that might be of interest:
-
- DayDoubler is a new product from Connectrix that gives you those
- extra hours in each day that we've been asking for. Using
- sophisticated time mapping and compression techniques to double
- the number of hours in the day, DayDoubler gives you access to 48
- hours each day. With the shareware hack MaxDay, you can easily
- stretch your day to 60, 72, or even 96 hours! Connectrix warns
- that at the higher numbers DayDoubler becomes less stable and that
- you run the risk of a temporal crash in which everything from the
- beginning of time to the present would come crashing down around
- you, sucking you into a black hole.
-
- Should this occur, be sure to reboot with the shift key down.
-
-
- copyright Adam Engst, TidBITS#253/21-Nov-94
- =========================================================================
- Date: Tue, 22 Nov 1994 10:53:35 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: macscrpt <dawnb@MOODYS.COM>
- Subject: Copy from In-box?
-
- I'm looking for a way to copy messages from a PowerTalk in-box to a Mac
- file-system using AppleScript so that messages from a listserv can be indexed
- for searching. Any ideas?
-
- Thanks.
-
- Dave Young
- =========================================================================
- Date: Tue, 22 Nov 1994 09:00:01 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Jeff Johnson <jkjonson@ZNET.COM>
- Subject: Re: FaceSpan 1.0.1 (was Kee's show & tell)
-
- >>As to the leak, get version 1.0.1.
- >
- >and Fred said:
- >
- >>How do you get this? Is it part of the AppleScript Developer's Guide update?
- >
- >We need more details on both of these!
-
- I got FaceSpan 1.0.1 with my recent purchase of the AppleScript Developer's
- Kit. I just started developing in FaceSpan, which I like very much. I
- suppose if I'd started with version 1.0 I wouldn't like it quite so much,
- if your bug list is any indication!
-
- I haven't had any major problems yet, aside from an irritating problem with
- the FaceSpan app becoming hidden when I activate the Finder inside a
- handler. The handler exits with the Finder still the foreground
- application. I don't want FaceSpan to become hidden; I just want it to go
- to the background, with the document window still open. Very peculiar
- problem!
-
- Otherwise, my projects have run rather flawlessly. I do have a couple of
- gripes about the interface for scripts. There really should be a
- source-level debugger in the thing. I'd like to be able to move the cursor
- directly to the first line of a handler. I'd like to be able to watch
- variables as scripts execute, set breakpoints, you know, the usual stuff.
- Right now I write my scripts as separate chunks of routines in the Apple
- Script Editor, debug them through repeated execution, and then move them
- back into FaceSpan when they're solid enough.
-
- I tried ScriptWizard, but it's abominable. Great ideas, but incredibly
- INCREDIBLY slow! I can't write a script longer than a single window-full
- before it becomes too slow to use interactively.
-
- I haven't done much scripting in HyperCard, though I've written a few
- stacks over the years, for two reasons: color support is awful in
- HyperCard, and I like to create colorful interfaces, and the script editor
- doesn't support AppleScript standard formatting. I find color-coding my
- scripts extremely useful; it helps me develop faster. It's not just a
- luxury for me.
-
- Call SDU and get FaceSpan 1.0.1! 919-968-4567.
-
-
-
- Jeff Johnson
-
- --------------------------------------------------------------------------------
- Software Engineer, Charon, Inc., Cupertino, California, USA
- --------------------------------------------------------------------------------
- #include <std/disclaimer.h> /* Any opinions expressed in my posts and email */
- /* are mine alone, and do not necessarily reflect */
- /* those of my employer or associates. */
- --------------------------------------------------------------------------------
- email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
- --------------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 22 Nov 1994 09:01:06 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Robert Hess <robert_hess@MACWEEK.ZIFF.COM>
- Subject: Re: Mac listserv s/w?
-
- Reply to: RE>Mac listserv s/w?
- I've been petitioning the author of MailShare, Glenn Anderson, to add
- listserv capabilities to his program. He seems willing, if not awfully
- busy already. You might want to send your own appeal to
- glenn.anderson@stonebow.otago.ac.nz.
-
- --------------------------------------
- From: Gib Veconi
- I think this may have been covered before, but is anybody aware of a
- Mac-based, scriptable, listerv program? Use of AOCE would be a plus.
- =========================================================================
- Date: Tue, 22 Nov 1994 12:41:38 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
- Subject: Re: Scriptable Finder & 7.1 ? -Reply
-
- If i want to take "XText" and turn it into "Text" what is the simplest
- way. Tried "Delete char 1 of variablename" didn't work.
-
- thanks
-
- Andrew Cemelli
- Systems Engineer, Novell
- (ANDYC@WordPerfect.com)
- ---------------------------------------------------
- The fact that I'm opinionated is not my employer's fault.
- ---------------------------------------------------
- =========================================================================
- Date: Tue, 22 Nov 1994 19:19:48 MET
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Axel Wilzopolski <aw@IX.DE>
- Subject: wait for end of application
-
- I want an AppleScript-application to start another application and
- after that waiting for the termination of that application before
- any other thing is done in the applescript.
-
- I think it should look like this:
-
- ...things to do
-
- tell application XXX
- activate
- end tell
-
- WaitForEndOfXXX()
-
- ... more things to do
-
-
- At the moment my script is starting the application but immediatly
- continuing to execute the following AppleScript-commands.
- Does anyone know a solution to my problem ?
-
- Axel
- --
- Axel Wilzopolski
- Verlag Heinz Heise GmbH & Co KG, Helstorferstr. 7, D-30625 Hannover, FRG
- EMail: aw@ix.de
- =========================================================================
- Date: Tue, 22 Nov 1994 13:08:27 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: Mac listserv s/w?
-
- > Reply to: RE>Mac listserv s/w?
- >I've been petitioning the author of MailShare, Glenn Anderson, to add
- >listserv capabilities to his program. He seems willing, if not awfully
- >busy already. You might want to send your own appeal to
- >glenn.anderson@stonebow.otago.ac.nz.
- >
- >--------------------------------------
- >From: Gib Veconi
-
-
- I asked the same of him about 3 weeks ago and got a negative from him, but
- I will send again. Maybe if more people (hint hint) send in requests, he
- would be willing!
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Tue, 22 Nov 1994 13:16:13 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: DayDoubler (humor)
-
- I'm a bit confussed. What exactly *is* this TimeDoubler/ DayDoubler going to do?
-
- >For those of you waiting for the TimeDoubler osax that Dan Hinckley mentioned,
- >Connectrix has a new product......
- >
- >**Brady Johnson** <bjohnson@halcyon.com> writes to announce a new
- > product that might be of interest:
- >
- > DayDoubler is a new product from Connectrix that gives you those
- > extra hours in each day that we've been asking for. Using
- > sophisticated time mapping and compression techniques to double
- > the number of hours in the day, DayDoubler gives you access to 48
- > hours each day. With the shareware hack MaxDay, you can easily
- > stretch your day to 60, 72, or even 96 hours! Connectrix warns
- > that at the higher numbers DayDoubler becomes less stable and that
- > you run the risk of a temporal crash in which everything from the
- > beginning of time to the present would come crashing down around
- > you, sucking you into a black hole.
- >
- > Should this occur, be sure to reboot with the shift key down.
- >
- >
- >copyright Adam Engst, TidBITS#253/21-Nov-94
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Tue, 22 Nov 1994 14:30:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: wait for end of application
-
- >I want an AppleScript-application to start another application and
- >after that waiting for the termination of that application before
- >any other thing is done in the applescript.
- >
- >I think it should look like this:
- >
- >...things to do
- >
- >tell application XXX
- > activate
- >end tell
- >
- >WaitForEndOfXXX()
- >
- >... more things to do
- >
- >
- >At the moment my script is starting the application but immediatly
- >continuing to execute the following AppleScript-commands.
- >Does anyone know a solution to my problem ?
- >
-
- Idle processing is the best way:
-
- on run
- -- do your work
- tell application "XXX"
- activate
- end tell
- end run
-
- on idle
- -- either use the scriptable finder
- -- or some other OSAX that lists processes (on gaea)
- tell application "Finder"
- if name of processes does not contain "appName" then
- doRest()
- tell me to quit
- else
- return 1 -- check every second
- end if
- end tell
- end idle
-
- on doRest()
- -- do the rest of your script
- end doRest
-
- on quit
- continue quit
- end quit
-
- Save as a stay-open app so the idle handler is executed.
-
- Another way that eats CPU cycles is:
-
- -- do your work
- tell application "PPUI"
- activate
- end tell
-
- repeat
- tell application "Finder"
- if name of processes does not contain "appName" then
- exit repeat
- end if
- end tell
- end repeat
- -- do the rest of your script
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 22 Nov 1994 11:44:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kee Nethery <kee@KAGI.COM>
- Subject: Re2: Mac listserv s/w?
-
- >>I've been petitioning the author of MailShare, Glenn Anderson, to add
- >>listserv capabilities to his program. He seems willing, if not awfully
- >>busy already. You might want to send your own appeal to
- >>glenn.anderson@stonebow.otago.ac.nz.
- >
- >I asked the same of him about 3 weeks ago and got a negative from him, but
- >I will send again. Maybe if more people (hint hint) send in requests, he
- >would be willing!
-
- Folks, before we start to kill the goose that laid the golden egg, please
- keep in mind that Glenn has a day job that occupies a large part of his
- time. The demands of this new job caused him to issue MailShare as freeware
- rather than pursue some kind of shareware or commercial arrangement. The
- guy is swamped and just because we see him as our hero is no reason for him
- to feel obligated to give up his life and devote it to our desires.
-
- It might be more constructive if people started thinking about how they
- could work with MailShare and Glenn Anderson to add the functionality
- everyone desires. Is there a code wrangler out there who might be willing
- to start with Glenn's source code (if he is willing to allow this) and
- coordinate amongst coders in this group to add the functionality we desire?
- Is there someone who would be willing to write an applet that watches
- MailShare folders and moves mail around to create a listserv function? Is
- there a group who wants to do an AppleScript applet that acts as a
- listserv? ...
-
- Let's be creative but lets don't lean on Glenn. If he has the time he'll do
- it. If he doesn't he won't. If we piss him off in a big way, his support
- for MailShare could stop here and now. Maybe someone can suggest some way
- to meet Glenn's needs and ours without impacting Glenn's time?
-
- Kee Nethery
-
- PS: I too want MailShare to support Mailing Lists but I too do not have the
- time.
- =========================================================================
- Date: Wed, 23 Nov 1994 08:53:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- Brian Hall <mspace@NETCOM.COM> asks:
-
- >Lawrence:
- >>So what you need to do is define a standard set of handlers and/or properties,
- >>which return information that your application can interrogate to determine
- >>whether the script is currently applicable or not.
- >
- >Of course this begs the question- how does the *script* know if it should
- >be enaabled? By sending events back to the app for state information? (ie,
- >"hasSelection", "window of type foo is frontmost", etc.
-
- Yup, that's the sort of thing I had in mind. Keep the application<->script
- interface simple (perhaps just call a "are you enabled?" handler), and let
- the script do all the complicated checks it has to. All the more reason to
- support the Object Model!
-
- (By the way, I thought I'd heard everything, until I read Jon's description of
- collision detection handlers done in AppleScript. Tinkerability rules, OK!)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Wed, 23 Nov 1994 08:57:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Scriptable Finder & 7.1 ?
-
- David Lloyd <100046.3512@COMPUSERVE.COM> asks:
-
- >Can safely use Finder 7.5 and the Finder Scripting Extension with System 7.1 ?
- >I heard reference once to there being problems with this setup resulting in
- lost
- >files.
-
- The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
- shipping with all the Power Macs. Yes, I believe it is safe to use with 7.1.
- There was mention of this on one of my CDs--might have been the AppleScript
- one. The note said to be aware of the possibility of the lost data, yet at
- the same time it said they didn't expect any problems. (I guess they were just
- trying to cover themselves.)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 22 Nov 1994 11:08:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Enabling/Disabling Scripts in Script Menu
-
- >
- >In addition, it is best to save the modified date for the folder and
- >rebuild your cache when it changes. We only check this when becoming the
- >front application. Since we do an heirarchical menu, it can take some
- >serious time to hit the disk and rebuild the whole thing. It's a bit much
- >for doing when you click on the menu.
-
- I think you are doing it right...but only checking the modified date upon
- activation leaves a small "hole": consider a script which tells Finder to
- move another script into the Scripts folder.
-
- The solution?
-
- If it hurts, don't do it.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 22 Nov 1994 14:16:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Ray Lam <lam@ISD.JPL.NASA.GOV>
- Subject: AppleScripting Tools
-
- Hi,
-
- I'm thinking of getting a copy of a scripting tool such as FrontMost,
- ScriptWizard, TableServer or others. I need some recommandation on what to
- get. Can anyone send
- me their experience or is there a newgroup which will discuss this topic.
- Thanks in advance.
-
- Ray Lam
- lam@isd.jpl.nasa.gov
- =========================================================================
- Date: Tue, 22 Nov 1994 16:19:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Chris LeCroy <lecroy@IDS.NET>
- Subject: Re: FMP Timeout Problem!
-
- >>IUm working on a fairly large & involved AppleScript that manipulates
- >>data in several FileMaker Pro files. It all seems to work really well, exc=
- e=3D
- >pt
- >>for one niggling--and highly frustrating--problem:
- >>
- >>When I try to obtain the number of records in the current found set,
- >>the event never resolves; instead, after a minute or so, I get an RAppleEv=
- e=3D
- >nt
- >>timed outS dialog box.
- >>
- >>The problem line is:
- >>
- >> set rCount to (Count of Layout 1 of Window 1 Class Record)--times
- >>out
- >>
- >>IUve tried it with long time outs and it just doesnUt do any good.
- >>
- >>
- >>Please help!!!
- >>
- >>
-
- As Mark pointed out, the problem has to do with FileMaker replying to the
- AppleEvent when the script is triggered rather than after it has completed.
- The following is a function I use to avoid the problem:
-
- on WaitUntilFileMakerIsReady(maxWaitSeconds)
- repeat
- (*Exercise for the reader:
- if elapsed time exceeds maxWaitSeconds
- return
- end if
- *)
- try
- tell application "FileMaker Pro 2.1v2"
- get version --any benign statement
- return
- end tell
- on error msg number errNum from errObj
- if err =82 -1712 then -- errAETimeout =3D=3D -1712
- error msg number errNum from errObj
- end if
- end try
- end repeat
- end WaitUntilFileMakerIsReady
-
- Just insert WaitUntilFileMakerIsReady() calls immediately following your
- =46ileMaker calls and it will simply loop until FileMaker is ready to receiv=
- e
- events again. I think this works better than some of the other workarounds
- I've seen posted, in that it actually waits until FileMaker responds and it
- doesn't require any modifications to your FileMaker scripts. It possible
- that a some[one,thing] could sneak another call in between the
- WaitUntilFileMakerIsReady() and your next FileMaker call, but the odds are
- low and the other solutions have the same potential problem.
-
- Hope this helps,
-
- ---
- Chris LeCroy - lecroy@ids.net
- SouthBeach Software Corp.
- =========================================================================
- Date: Wed, 23 Nov 1994 11:29:33 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: RE> PowerTalk and ApplescrI
-
- >There is also a company called Graphical Business Interfaces which publishes
- >AOCE tools for AppleScript. I've ordered, but not yet received, their
- >developer's kit. You can reach GBI at http://www.gbi.com/.
-
- Be careful with GBI. I bought their TableIt! product, but it broke on a
- IIsi. I returned it for a refund (the promised fix never arrived) and
- despite numerous reminders have not received any refund or a reply.
-
- Caveat emptor!
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Tue, 22 Nov 1994 16:05:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Bill Russell <bill.russell@PT.TERADYNE.COM>
- Subject: Date
-
- Hi: I'm new to Applescript. Just as a test case, I tried to write a small
- program to reboot a server every night at (say) midnight. I ran into a
- problem... I can't convert a date to a script so I can look at it.
- Ideally I'd like to say:
- set timeX to current date
- tiemeX as string
- is timeX contains "PM" then
- is timeX contains "12:00" then
- restart
- end if
- end if
-
- BUT, I can't change the date to string format, so I can't do any
- operations on it.
-
- Any help would be appreciated.
-
-
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Bill Russell
- bill.russell@pt.teradyne.com
- 617-422-2362 (voice)
- 617-422-2240 (FAX)
- =========================================================================
- Date: Tue, 22 Nov 1994 14:43:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Date
-
- Bill wrote:
-
- > it. Ideally I'd like to say:
- > set timeX to current date
- > tiemeX as string
- > is timeX contains "PM" then
- > is timeX contains "12:00" then
- > restart
- > end if
- > end if
- >
- > BUT, I can't change the date to string format, so I can't do
- > any operations on it.
-
- Maybe I'm rustier than I thought (I'm currently not doing AS because I've only
- got 12 Megs of RAM :( ), but the second line, the 'timeX as string', doesn't
- it just return timeX as a string, rather than change its type?
-
- You might want to try changing that line to 'set timeY to timeX as a string'
- and see if it makes a difference ...
-
- -roy
- =========================================================================
- Date: Tue, 22 Nov 1994 16:41:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: David Messina <messina@MCS.COM>
- Subject: Re: Scriptable Finder & 7.1 ?
-
- >The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
- >shipping with all the Power Macs.
-
- >Yes, I believe it is safe to use with 7.1.
-
- To confirm -- I have been running Finder 7.1.4 on a 7100 since I've had my
- PowerMac; no problems. So go to it if that's the configuration you're
- looking for.
-
-
- --
-
- David Messina
- messina@mcs.com
- =========================================================================
- Date: Tue, 22 Nov 1994 15:44:26 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Gene Foust <gfoust@BALL.COM>
- Subject: Re: Date
-
- I cleaned up what I think were typos and the following works for me:
-
- set timeX to current date
- set timeX to timeX as string
- if timeX contains "PM" then
- if timeX contains "12:00" then
- restart
- end if
- end if
-
- ------ From: Macintosh Scripting Systems, Tue, Nov 22, 1994 ------
-
- Hi: I'm new to Applescript. Just as a test case, I tried to write a small
- program to reboot a server every night at (say) midnight. I ran into a
- problem... I can't convert a date to a script so I can look at it.
- Ideally I'd like to say:
- set timeX to current date
- tiemeX as string
- is timeX contains "PM" then
- is timeX contains "12:00" then
- restart
- end if
- end if
-
- BUT, I can't change the date to string format, so I can't do any
- operations on it.
-
- Any help would be appreciated.
-
-
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Bill Russell
- bill.russell@pt.teradyne.com
- 617-422-2362 (voice)
- 617-422-2240 (FAX)
- =========================================================================
- Date: Wed, 23 Nov 1994 11:51:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: EightyLister update
-
- I've just dropped a new version of EightyLister in the incoming folder on
- Gaea. It now lets you get information about classes and event parameters,
- and also there's the option to get dynamic terminology from running
- applications, as I mentioned before.
-
- I did have to make a change to the format of the returned data. This used to
- be just a list of information about events: it's now a record, with one or
- two fields, one field for the list of event information, the other for the
- list of class information (details are in the dictionary, as you would expect).
- You'll have to modify your existing scripts accordingly.
-
- Enjoy. And as always, let me know of any problems, suggestions for improvement
- etc.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- =========================================================================
- Date: Tue, 22 Nov 1994 18:00:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: I NEEEED FaceSpan 1.0.1
-
- I need the memory leak bug fix found in FaceSpan 1.0.1. The only problem
- is I can't find it anywhere. APDA does not offer an upgrade other than to
- buy the entire package again. Even then they would not guarentee what
- version of FaceSpan I would get. Is it anywhere out there in cyberspace??
- Thanks in advance
- Mark Hadfield.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Wed, 23 Nov 1994 13:07:00 +1300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Scriptable Finder & 7.1 ?
-
- David Messina <messina@MCS.COM> writes:
-
- >>The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
- >>shipping with all the Power Macs.
- >
- >>Yes, I believe it is safe to use with 7.1.
- >
- >To confirm -- I have been running Finder 7.1.4 on a 7100 since I've had my
- >PowerMac; no problems. So go to it if that's the configuration you're
- >looking for.
-
- Unfortunately, Power Macs don't run 7.1. The earliest system they can run
- is 7.1.2.
- =========================================================================
- Date: Tue, 22 Nov 1994 19:14:33 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
-
- >I got FaceSpan 1.0.1 with my recent purchase of the AppleScript Developer's
- >Kit. I just started developing in FaceSpan, which I like very much. I
- >suppose if I'd started with version 1.0 I wouldn't like it quite so much,
- >if your bug list is any indication!
- >
- >I haven't had any major problems yet, aside from an irritating problem with
- >the FaceSpan app becoming hidden when I activate the Finder inside a
- >handler. The handler exits with the Finder still the foreground
- >application. I don't want FaceSpan to become hidden; I just want it to go
- >to the background, with the document window still open. Very peculiar
- >problem!
- >
- >Otherwise, my projects have run rather flawlessly. I do have a couple of
- >gripes about the interface for scripts. There really should be a
- >source-level debugger in the thing. I'd like to be able to move the cursor
- >directly to the first line of a handler. I'd like to be able to watch
- >variables as scripts execute, set breakpoints, you know, the usual stuff.
- >Right now I write my scripts as separate chunks of routines in the Apple
- >Script Editor, debug them through repeated execution, and then move them
- >back into FaceSpan when they're solid enough.
- >
- >I tried ScriptWizard, but it's abominable. Great ideas, but incredibly
- >INCREDIBLY slow! I can't write a script longer than a single window-full
- >before it becomes too slow to use interactively.
- >
- >Jeff Johnson
- >
- Try Scripter when it comes out. It sounds awesome. I read some preliminary
- information about it in MacWeek. It sounds like the first industrial
- strength applescript editor. If only an interface tool like FaceSpan could
- be integrated with a powerful editor like Scripter. That would be
- scripting heaven!!!
-
- P.S. Hopefully we won't have to wait until they both become OpenDoc parts!!!
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hospital For Sick Children
- =========================================================================
- Date: Tue, 22 Nov 1994 16:59:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
-
- >Try Scripter when it comes out. It sounds awesome. I read some preliminary
- >information about it in MacWeek. It sounds like the first industrial
- >strength applescript editor. If only an interface tool like FaceSpan could
- >be integrated with a powerful editor like Scripter. That would be
- >scripting heaven!!!
- >
- >P.S. Hopefully we won't have to wait until they both become OpenDoc parts!!!
-
- And there's the "soon to ship" ScriptDebugger too (sorry, Cal!).
-
- What I really need are "industrial strength" tools that support source
- level debugging and source code control.
-
- Source level debugging is essential and I find it difficult to beleive why
- the API didn't support this form the very start. Even today it seems to be
- a pretty well held secret about how one does this (from the Scripting API
- point of view).
-
- Source code control is the other requirement. All serious developers use
- source code control and on the Mac they use (have to use :-) Projector
- either via MPW or SourceServer.
-
- If you are a developer of a script editor then make sure your editor
- respects 'ckid' resources from Projector. THINK C, Pascal, CodeWarrior,
- Resourcerer, BBEdit and all the other development tools can do so and so
- should you. Some of us work in teams (some to produce commericial products)
- and we Project all of the source including example scripts. I don't want to
- accidently nuke a file that is checked out read only just because the
- editor is too damn dumb to check for the 'ckid'.
-
- About the only way to do this at the moment is to use MPW, SourceServer and
- ScriptServer, but this is a little incovienient for those with an
- interactive turn of mind.
-
- When will Loic turn out an ObjectMaster for AppleScript!
-
- Maybe I should try Frontier? Does Frontier support Projected files, John?
-
- Kevin Purcell Attachmate Corp (206) 649-6489
- kevinpu@atm.com Seattle dBug Mac Developers SIG organizer
- =========================================================================
- Date: Sat, 5 Nov 1994 12:48:02 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: INBOUND <INBOUND@AMGENGATE.AMGEN.COM>
- Subject: Please Resend
-
- Mail*Link(r) SMTP RE>Testing note to my seee
- What do you mean cold????? 72??? Are you nuts??? That's beautiful!!!!
-
- ------------------ RFC822 Header Follows ------------------
- Received: by amgengate.amgen.com with SMTP;5 Nov 1994 12:25:20 -0800
- Received: from ehsct7.envmed.rochester.edu by ehsct7.envmed.rochester.edu
- (PMDF V4.3-13 #6313) id <01HJ4IC5P5C6000CAC@ehsct7.envmed.rochester.edu>;
- Sat,
- 05 Nov 1994 15:21:28 -0500 (EST)
- Date: Sat, 05 Nov 1994 15:21:28 -0500 (EST)
- From: LISA_O@ehsct7.envmed.rochester.edu
- Subject: Re: Testing note to my seee
- To: Victoria_Hickey@amgengate.amgen.com
- Message-id: <01HJ4IC5P5C8000CAC@ehsct7.envmed.rochester.edu>
- X-VMS-To: IN%"Victoria_Hickey@amgengate.amgen.com"
- X-VMS-Cc: LISA_O
- MIME-version: 1.0
- Content-type: TEXT/PLAIN; CHARSET=US-ASCII
- Content-transfer-encoding: 7BIT
- =========================================================================
- Date: Tue, 22 Nov 1994 17:48:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScripting Tools
-
- >Hi,
- >
- >I'm thinking of getting a copy of a scripting tool such as FrontMost,
- >ScriptWizard, TableServer or others. I need some recommandation on what to
- >get.
-
- The above is not a "choose one of these" sort of thing.
-
- ScriptWizard (which I've only used briefly in a demo version) is an
- alternative script editor, plus debugging tools.
-
- FrontMost is primarily a builder of user interfaces (and script-based
- applications which use those interfaces). The work of the Frontmost-based
- app is done in (a large) script, which is edited within Frontmost as if
- there were a smaller script attached to each UI object. FaceSpan is the
- same thing under its new and current name.
-
- TableServer just implements a simple (and rather nice for the purpose)
- text-based scriptable database.
-
-
- >... is there a newgroup which will discuss this topic.
-
- This is as close at you'll come. Periodically the idea of starting a
- newsgroup surfaces. It floats around for a while and then, thankfully,
- sinks again.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 22 Nov 1994 17:48:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Date
-
- >Hi: I'm new to Applescript. Just as a test case, I tried to write a small
- >program to reboot a server every night at (say) midnight. I ran into a
- >problem... I can't convert a date to a script so I can look at it.
-
- First, I probably wouldn't convert to a string and then look for "12:00"
- and "PM" (I certainly wouldn't look for "PM", since I have my Mac set for
- 24 hour time representation). But if you must, you can do so using two (or
- three) of the Scripting Additions in the GTQ Scripting Library
-
- current date in seconds
- returns what it says, in seconds since Jan 1, 1904 began
-
- time string for nn
- time string for nn with seconds
- returns what it says, given seconds since Jan 1, 1904 as above.
-
- date string for nn
- date string for nn in short format/abbreviated format/long format
- returns what it says, given seconds since Jan 1, 1904, in the format you
- specify out of that list.
-
- But...if you look for "12:00" and "PM", you might "miss", if the system
- happens to be so tied up with something at midnight that your script
- doesn't get time during the first minute of the day.
-
- I'd probably do something like
-
- property priorDate: ""
-
- on run
- -- stuff to set things up, which might be empty or might set priorDate
- end run
-
- on idle
- set today to date string for (current date in seconds)
- if priorDate is not today then
- if priorDate is "" then
- copy today to priorDate
- else
- copy today to priorDate
- tell application "Finder" to restart
- end if
- return n -- pick a suitable number of seconds between calls to your script
- end idle
-
- on quit
- continue quit
- end quit
-
- This would be saved as a stay-open script application, probably in the
- startup items folder, but perhaps elsewhere to be launched by something at
- the end of normal operations for the day.
-
-
- The above is untested. Other solutions exist. [Since I have Frontier
- running full time, I would use a Frontier Scheduler Suite task to do the
- job.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 22 Nov 1994 20:53:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Deirdre Saoirse-Savino <Deeny3@AOL.COM>
- Subject: Re: DayDoubler (humor)
-
- Now now, those of us on the Day-to-Day Calendar team all knew about shrinking
- and expanding time.
-
- (For those who haven't seen the product, times during the day "expand" or
- "contract" with the middle 1/2 of the window full-size time slots).
-
- _Deirdre (dead last of the programming credits)
- =========================================================================
- Date: Tue, 22 Nov 1994 17:38:27 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Customer Support <info@GBI.COM>
- Subject: Re(2): RE> PowerTalk and ApplescrI
-
- Owen,
-
-
- Please give us a call and we'll make sure your refund is processed
- immediately. We apologize for any problems you may have experienced with
- TableIt! on a IIsi.
-
-
- GBI, Inc.
- =========================================================================
- Date: Tue, 22 Nov 1994 22:18:11 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Yet another pause problem
-
- If y'all remember, awhile back I had a "joke" script I was writting for a
- friend that does nothing but look like there's a problem.Well, we've
- decided to expand it, and we need it to appear as though it is doing
- something for awhile, and then continue with the joke dialogs. Here's the
- script:
-
- global whatsNext
-
- on run
- display dialog "Installing Root Folder into your System..."
- buttons {"Cancel"}
- set i to 1
- repeat with i from 1 to 5
- i + 1
- end repeat
- set whatsNext to "pauseDone"
- Cont()
- end run
-
- on Cont()
- if whatsNext is "pauseDone" then
- doRest()
- else
- set whatsNext to "pauseDone"
- end if
- end Cont
- on doRest()
- [...this is fine...]
- else
- [...]
- end doRest
-
-
- All this does is is sit on the first dialog. It doesn't even have the
- little spinning beachball. It just sits there and does nothing. Can anyone
- help me out here? TIA,
- -jaeson the lost soul
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Tue, 22 Nov 1994 21:07:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Bruce B. Lacey (Bruce B. Lacey)" <blacey@CERF.NET>
- Subject: Re: Date
-
- >Hi: I'm new to Applescript. Just as a test case, I tried to write a small
- >program to reboot a server every night at (say) midnight. I ran into a
- >problem... I can't convert a date to a script so I can look at it.
- >Ideally I'd like to say:
- > set timeX to current date
- > tiemeX as string
- > is timeX contains "PM" then
- > is timeX contains "12:00" then
- > restart
- > end if
- > end if
- >
- >BUT, I can't change the date to string format, so I can't do any
- >operations on it.
- >
- >Any help would be appreciated.
-
- Keep in mind that you can retrieve properties of a date value...
- For example:
-
- set timeX to time of current date
- --returns the number of seconds since midnight
-
- you may consider an idle handler that the first time it is invoked, it
- calculates the time to mid-night and returns a wait until the mid-night as:
-
- return 86400 - (time of the (current date))
-
- relinquishing the CPU until it needs to perform the restart... ;-)
-
- --When the restart script first receives a run event, set the restart flag to
- --false
- on run
- global restart
- set restart to false
- end run
-
- --When the idle handler is invoked, restart if this is the second time to the
- --idle handler, otherwise return the number of seconds until midnight
- on idle
- global restart
- if restart then
- tell application "Finder" to restart{}
- else
- set restart to true
- return 86400 - (time of the (current date))
- end if
- end idle
-
- Good luck.
- Bruce.
-
- P.S. I have not tested this...
- =========================================================================
- Date: Tue, 22 Nov 1994 23:46:49 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: EightyLister update
- In-Reply-To: Your message of "Wed, 23 Nov 94 11:51:00 +1300"
-
- >I've just dropped a new version of EightyLister in the incoming folder on
- >Gaea. It now lets you get information about classes and event parameters,
- >and also there's the option to get dynamic terminology from running
- >applications, as I mentioned before.
-
- This can now be found in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightyLister.hqx
-
- pf
- =========================================================================
- Date: Wed, 23 Nov 1994 01:09:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
- Subject: Re: wait for end of application
-
- Axel Wilzopolski <aw@IX.DE> asked:
- > I want an AppleScript-application to start another application and
- > after that waiting for the termination of that application before
- > any other thing is done in the applescript.
-
- I seem to remember that an extension/app/whatever was recently put on
- the info-mac archive that will run a script at the launch and/or at the
- quitting of an application. If you want to avoid having your driver
- script spin it's wheels while waiting for an app to quit, maybe you can
- use this product to have the app launch a script that just sends a
- signal back to your main script.
-
- I didn't download this thing myself, unfortunately. Hope this vague
- description is useful anyway.
-
- Cheers,
-
- Tom
-
- -------------------------------------------------------------------------
- W. Thomas Pollard Department of Chemistry
- pollard@cucbs.chem.columbia.edu Columbia University
- -------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 23 Nov 1994 00:19:55 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
- Subject: Re: wait for end of application
-
- >I seem to remember that an extension/app/whatever was recently put on
- >the info-mac archive that will run a script at the launch and/or at the
- >quitting of an application. If you want to avoid having your driver
- >script spin it's wheels while waiting for an app to quit, maybe you can
- >use this product to have the app launch a script that just sends a
- >signal back to your main script.
- >
- >I didn't download this thing myself, unfortunately. Hope this vague
- >description is useful anyway.
- >
- >Cheers,
- >
- >Tom
- >
-
- I believe I found this on gaea. It's called ScriptSync (sp?). It does
- things very nicely. Mainly I use it for launching Stuffit Expander when I
- launch Anarchie, but it should do the trick...
-
- -J
-
- | Jaeson M. Engle || jme@josaiah.sewanee.edu |
- www server: http://josaiah.sewanee.edu/ )
- =========================================================================
- Date: Tue, 22 Nov 1994 22:23:44 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "Allan R. Crump Jr" <jhhw@CRL.COM>
- Subject: Get1Resource
-
- I am reading the resource map from my preference file by using the
- Get1Resource function described inside Macintosh.
-
- This function returns a handle to the data, or so I thought. The data is
- actually a WIND resource, or window record resource that I'd like to
- modify the top.right positioning of the window so that next time the
- application does a GETNEWWINDOW (from the resource) it reads the last
- known rect from the resource.
-
- After reading in the handle, I believed I could just do a RESOURCECHANGED
- to update the file. Upon doing so, it completely destroyed my WIND resource.
-
- Is there something I should be aware of ?
- =========================================================================
- Date: Wed, 23 Nov 1994 01:50:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
- Subject: Advantages of ScriptTools v. Apple's osaxen
-
- Howdy,
-
- I've been using Matt Alldritt's File IO osax for some time, as the version
- of AppleScript I had didn't include any comparable commands. However, now
- that I have System 7.5, I have the option of using some new osaxen included
- with the System. I was wondering if anyone out there would pontificate on
- the subject of:
-
- Matt Alldritt's ScriptTools File IO and Choose Files & Folders osaxen
- v.
- Apple's Read/Write Commands, Choose File, and New File osaxen
-
- Thanks! I'm looking forward to a highly partisan battle royale...
-
- Brent Sleeper
-
-
- --
- M. Brent Sleeeper -- bsleeper@flightpath.com
- Flightpath Communications -- info@flightpath.com
- =========================================================================
- Date: Wed, 23 Nov 1994 09:53:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: John Stanley <John_Stanley@QMGATE.CORP.APPLE.COM>
- Subject: How to find number of items
-
- I have searched in vain to find an easy way to find out how many items are in
- a folder. Using "information window" I can virtually everything else that
- comes up in a standard Get Info window, but not the number of items.
- Likewise, "folder" does not have any elements defined that tell you how many
- items in total there are - you can get a list of the top level items and
- count those, but not the ones nested within sub folders.
-
- I could traverse the folder and count all the items as I go, but I wanted to
- put up a progress bar as I was doing the work because traversing the folder
- is itself slow.
-
- Any ideas?
-
- John
- =========================================================================
- Date: Wed, 23 Nov 1994 08:51:26 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Re: Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
-
- In Regards to your letter <199411230014.AA01414@exnet.com>:
- > >
- > >I tried ScriptWizard, but it's abominable. Great ideas, but incredibly
- > >INCREDIBLY slow! I can't write a script longer than a single window-full
- > >before it becomes too slow to use interactively.
- > >
-
- We've heard the complaints about SW performance. Version 1.1 will ship
- using a different text editing engine, which will improve the performance.
- If you are a registered SW user and you'd like to beta test v1.1 please
- send email to "sw.test@ctalk.exnet.com".
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Wed, 23 Nov 1994 14:12:04 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- From: Nicolas Williams <nwilliam@CAMBRIDGE.SCR.SLB.COM>
- Subject: Scriptable Image Converter
-
- Could someone point me in the direction of an image utility that will take
- PICT format graphics and convert them to GIF format. The utility must be
- scriptable.
-
- Thanks,
-
- Nic.
-
- ________________________________________